.sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.15);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  background: #6b4a2d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.admin-info {
  flex: 1;
  line-height: 1.2;
}

.admin-name {
  font-size: 14px;
  font-weight: 600;
}

.admin-role {
  font-size: 12px;
  opacity: 0.7;
}

.admin-settings i {
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
}

.admin-settings i:hover {
  opacity: 1;
}









/* ashwini css */

/* lead page css */

/* Header */
.lead-subtitle {
  font-size: 14px;
  color: #8c6e5a;
}

/* Filters */
.filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box,
.status-filter {
  position: relative;
}

.search-box input,
.status-filter select {
  padding: 10px 14px 10px 38px;
  border-radius: 8px;
  border: 1px solid #e6d6cb;
  background: #fff;
}

.search-box i,
.status-filter i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #9b7d67;
}

/* Button */
.add-lead-btn {
  background: #7a4a2e;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
}

/* Table */
.lead-table-wrapper {
  background: #fff;
  border: 1px solid #eadfd6;
  border-radius: 10px;
}

.lead-table thead th {
  font-size: 12px;
  color: #9b7d67;
  font-weight: 600;
  border-bottom: 1px solid #eadfd6;
}

.lead-table tbody tr {
  border-bottom: 1px solid #eadfd6;
  /* ✅ FIXED */
}

.lead-table td {
  padding: 14px;
  font-size: 14px;
}

/* Status */
.status {
  padding: 0px 20px;
  border-radius: 20px;
  font-size: 12px;
}

.converted {
  background: #e6f4ea;
  color: #1e7e34;
}

.progress {
  background: #fff3cd;
  color: #856404;
}

.new {
  background: #e7f1ff;
  color: #0d6efd;
}

.dropped {
  background: #f8d7da;
  color: #842029;
}

/* Modal */
.lead-modal {
  border-radius: 12px;
}

.submit-btn {
  background: #7a4a2e;
  color: #fff;
}

.cancel-btn {
  border: 1px solid #ddd;
}

/* Mobile */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
  }

  .table-responsive {
    overflow-x: auto;
  }
}

/* commission page css */

.commission-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 4px solid #ddd;
}

.commission-card h4 {
  font-weight: 700;
  margin: 0;
}

.commission-card.warning {
  border-left-color: #f0a33e;
}

.commission-card.success {
  border-left-color: #3ca56b;
}

.search-input {
  max-width: 320px;
}

.status-filter {
  max-width: 160px;
  margin: 0 0 0 10px;
}

.commission-table-wrapper {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
}

.commission-table {
  margin: 0;
  border-collapse: collapse;
}

.commission-table th {
  background: #faf7f4;
  font-size: 13px;
  text-transform: uppercase;
  border-bottom: 1px solid #e6e0da;
}

.commission-table td {
  border-bottom: 1px solid #eee;
  /* 👈 horizontal lines FIX */
  vertical-align: middle;
}

.status {
  padding: 0px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status.paid {
  background: #e7f5ed;
  color: #2f7d4a;
}

.status.pending {
  background: #fff1dc;
  color: #b26a00;
}

.mark-paid-btn {
  border: 1px solid #e3d8cd;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  padding: 5px 12px;
}


/* report page css */

/* .reports-section {
  background: #faf8f5;
} */

.report-tabs .tab {
  border: 1px solid #ddd;
  padding: 8px 14px;
  background: #f8f8f8;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.report-tabs .tab.active {
  background: #fff;
  border-color: #c57b3c;
  color: #c57b3c;
}

.report-content {
  display: none;
}

.report-content.active {
  display: block;
}

.report-table th {
  font-size: 12px;
  color: #a56a3a;
}

.total-row {
  background: #faf6f2;
  font-weight: 600;
}


.report-tabs {
  display: flex;
  gap: 10px;
}

.report-tabs .tab {
  border: 1px solid #e6e1da;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.report-tabs .tab.active {
  background: #fff3e8;
  border-color: #f0c9a8;
  font-weight: 500;
}

.export-btn {
  border: 1px solid #e6e1da;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.ca-filter {
  max-width: 200px;
}

.report-table-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.report-table th {
  background: #faf6f1;
  font-size: 13px;
  text-transform: uppercase;
  color: #8b6f4e;
}

.report-table td {
  vertical-align: middle;
  font-size: 14px;
}

.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-block;
}

.badge.new {
  background: #e6f0f7;
  color: #31708f;
}

.badge.progress {
  background: #fff1d6;
  color: #b7791f;
}

.badge.converted {
  background: #e6f4ea;
  color: #2f855a;
}

.badge.dropped {
  background: #fbeaea;
  color: #c53030;
}

.total-row {
  background: #faf6f1;
  font-weight: 600;
}


/* ===============================
   EXPORT EXCEL TOASTS (ISOLATED)
   =============================== */

#export-toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  pointer-events: none;
}

.export-toast {
  min-width: 240px;
  background: #1f1f1f;
  color: #ffffff;
  padding: 10px 16px;
  margin-top: 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

/* Success state */
.export-toast.success {
  background: #2e7d32;
}

/* Show animation */
.export-toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* Optional: mobile adjustment */
@media (max-width: 576px) {
  #export-toast-container {
    right: 12px;
    bottom: 12px;
  }

  .export-toast {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ===== CA FILTER (ISOLATED) ===== */
.ca-filter {
  max-width: 260px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid #d7c1a5;
  border-radius: 8px;
  background-color: #ffffff;
  color: #333;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.ca-filter:focus {
  border-color: #c57b3c;
  box-shadow: 0 0 0 2px rgba(197, 123, 60, 0.15);
}

.ca-filter option {
  font-weight: 500;
}


/* ===============================
   REPORT TABLE – EXACT BORDER STYLE
   =============================== */

.reports-section .report-table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ccc; /* OUTER BORDER */
}

.reports-section .report-table th,
.reports-section .report-table td {
  border-bottom: 1px solid #ccc; /* HORIZONTAL LINES */
  padding: 12px 14px;
}

.reports-section .report-table thead th {
  border-bottom: 1px solid #ccc; /* HEADER LINE */
}

.reports-section .report-table tbody tr:last-child td {
  border-bottom: none; /* avoid double border with table */
}

















/*jidnyasa css */
/* =====================================================
   CA DASHBOARD – FINAL COMPLETE CSS
===================================================== */

/* ================= ROOT ================= */
.ca-dash-wrapper {
  background: #f4f7fb;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  padding: 28px;
  color: #0f172a;
}

/* ================= HEADER ================= */
.ca-dash-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.ca-dash-subtitle {
  font-size: 18px;
  color: #c77d6b;
  margin-top: 4px;
}

.ca-dash-actions {
  display: flex;
  gap: 12px;
}

.ca-dash-btn-outline {
  background: #ffffff;
  border: 2px solid #32241b;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 17px;
}

.ca-dash-btn-primary {
  background: #c77d6b;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 17px;
}

/* =====================================================
   SUMMARY CARDS – FINAL UNIFORM DESIGN
===================================================== */

.ca-dash-summary {
  display: flex;
  gap: 12px;
}

.ca-dash-summary > .col {
  flex: 1 1 0;
  max-width: none;
}

/* ================= CARD ================= */
.ca-dash-card {
  background: linear-gradient(135deg, #584233, #c77d6b);
  border-radius: 14px;

  height: 120px;
  min-height: 120px;
  max-height: 120px;

  display: flex;
  align-items: center;

  /* ❌ NO padding/gap change */
  transition: all 0.25s ease;
}

.ca-dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* ================= ICON (ONLY THIS IS MANAGED) ================= */
.ca-dash-icon {
  width: 42px;
  height: 42px;
  margin-left: 16px; /* 🔥 spacing from card edge */
  margin-right: 12px; /* 🔥 spacing before text */

  border-radius: 10px;
  background-color: #c77d6b;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.ca-dash-icon i {
  font-size: 20px;
  color: #ffffff;
  line-height: 1;
}

/* ================= TEXT ================= */
.ca-dash-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ca-dash-card p {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.15;
  color: #ffffff;
}

.ca-dash-card h4 {
  font-size: 22px;
  margin: 0;
  line-height: 1.1;
  color: #ffffff;
}

/* ================= ICON ================= */

/* ================= ICON COLORS ================= */
.ca-dash-card-1 .ca-dash-icon {
  color: #7a4a2e;
}

.ca-dash-card-2 .ca-dash-icon {
  color: #2f7d4a;
}

.ca-dash-card-3 .ca-dash-icon {
  color: #2b6cb0;
}

.ca-dash-card-4 .ca-dash-icon {
  color: #c05621;
}

.ca-dash-card-5 .ca-dash-icon {
  color: #b7791f;
}

/* =====================================================
   CONTENT BOX
===================================================== */
/* Make both columns same height */

/* =====================================================
   DASHBOARD BOX (COMMON)
===================================================== */
.ca-dash-box {
  background: #c77d6b;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #eee4dd;

  height: 100%;
  display: flex;
  flex-direction: column;
}

/* =====================================================
   BOX HEADER
===================================================== */
.ca-dash-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.ca-dash-box-header h5 {
  font-size: 22px;
  font-weight: 700;
  color: #2b1e16;
  margin: 0;
}

.ca-dash-box-header a {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   LIST WRAPPER
===================================================== */
.ca-dash-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

/* =====================================================
   LIST ITEM (ROW CARD STYLE)
===================================================== */
.ca-dash-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #fffaf6;
  padding: 16px 18px;
  border-radius: 14px;

  transition: background 0.2s ease;
}

.ca-dash-list li:not(:last-child) {
  margin-bottom: 12px;
}

.ca-dash-list li:hover {
  background: #fff3ea;
}

/* =====================================================
   LEFT CONTENT (TITLE + SUBTITLE)
===================================================== */
.ca-dash-list li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ca-dash-list strong {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.ca-dash-list .inner {
  font-size: 18px;
  font-weight: 600;
  margin-right: 180px;
  color: #111827;
}

.ca-dash-list .inner1 {
  font-size: 18px;
  font-weight: 600;
  margin-right: 172px;
  color: #111827;
}
.ca-dash-list .inner2 {
  font-size: 18px;
  font-weight: 600;
  margin-right: 234px;
  color: #111827;
}

.ca-dash-list .inner3 {
  font-size: 18px;
  font-weight: 600;
  margin-right: 139px;
  color: #111827;
}

.ca-dash-list span {
  font-size: 16px;
  color: #7c5b44;
}

/* =====================================================
   STATUS BADGES (MATCH IMAGE COLORS)
===================================================== */
.ca-dash-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* converted */
.ca-dash-badge.success {
  background: #e6f4ea;
  color: #1f7a4d;
}

/* in progress */
.ca-dash-badge.warning {
  background: #fdf1e3;
  color: #9a5b13;
}

/* new */
.ca-dash-badge.info {
  background: #e9f2fb;
  color: #1d4ed8;
}

/* dropped */
.ca-dash-badge.danger {
  background: #fde8e8;
  color: #b91c1c;
}@keyframes ca-pulse-glow-success {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 122, 77, 0.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(31, 122, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 122, 77, 0);
  }
}

@keyframes ca-pulse-glow-warning {
  0% {
    box-shadow: 0 0 0 0 rgba(154, 91, 19, 0.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(154, 91, 19, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(154, 91, 19, 0);
  }
}

@keyframes ca-pulse-glow-info {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(29, 78, 216, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29, 78, 216, 0);
  }
}

@keyframes ca-pulse-glow-danger {
  0% {
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(185, 28, 28, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0);
  }
}
.ca-dash-badge.success {
  animation: ca-pulse-glow-success 2s ease-out infinite;
}

.ca-dash-badge.warning {
  animation: ca-pulse-glow-warning 2s ease-out infinite;
}

.ca-dash-badge.info {
  animation: ca-pulse-glow-info 2s ease-out infinite;
}

.ca-dash-badge.danger {
  animation: ca-pulse-glow-danger 2s ease-out infinite;
}


/* =====================================================
   TOP PERFORMING CA LIST (RIGHT SIDE)
===================================================== */
.ca-dash-ca-list li {
  gap: 12px;
}

.ca-dash-rank {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1ede9;
  color: #5c4033;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ca-dash-amount {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: #15803d;
}

.ca-dash-amount small {
  display: block;
  font-size: 12px;
  color: #7c5b44;
  font-weight: 500;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
  .ca-dash-box-header h5 {
    font-size: 18px;
  }

  .ca-dash-list li {
    padding: 14px;
  }
}

.ca-list-wrapper {
  background: #faf6f1;
  font-family: "Inter", system-ui, sans-serif;
  color: #0f172a;
  padding: 110px 60px;
  border-radius: 14px;
  max-width: 100%;
  overflow-x: auto;
  margin-left: 240px;
}

/* Header */
.ca-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.ca-list-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.ca-list-subtitle {
  font-size: 18px;
  color: #c77d6b;
  margin-top: 4px;
}

.ca-list-add-btn {
  background: #c77d6b;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 17px;
}

/* Filters */
.ca-list-filters {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.ca-list-search,
.ca-list-select {
  background: #fff;
  border: 1px solid #e6ddd3;
  border-radius: 8px;
  padding: 6px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-list-search {
  flex: 1;
}
/* ===============================
   CA LIST SELECT – IMAGE STYLE
================================ */

.ca-list-select {
  position: relative;
  min-width: 180px;
}

.ca-list-select select {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;

  /* remove default arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Custom arrow */
.ca-list-select::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
  pointer-events: none;
}

/* filter icon alignment */
.ca-list-select i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.ca-list-select i + select {
  padding-left: 38px;
}

/* Focus */
.ca-list-select select:focus {
  outline: none;
  border-color: #d29583;
  box-shadow: 0 0 0 2px rgba(210, 149, 131, 0.2);
}

/* Selected option color (when opened) */
.ca-list-select select option:checked {
  background-color: #d29583;
  color: #fff;
}

/* Hover */
.ca-list-select select option:hover {
  background-color: #f5f5f5;
}

.ca-list-search input,
.ca-list-select select {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 17px;
}
/* ===============================
   CARD
================================ */
.ca-list-card {
  background: #fffaf6;
  border-radius: 18px;
  border: 1px solid #eddcc9;
  overflow: hidden;
}

/* ===============================
   TABLE BASE
================================ */
.ca-list-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 🔥 VERY IMPORTANT */
  font-family: "Inter", system-ui, sans-serif;
}

/* ===============================
   HEADER
================================ */
.ca-list-table thead {
  background: linear-gradient(135deg, #7a563a, #c89b6d);
}

.ca-list-table thead th {
  padding: 18px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  text-align: left;
  vertical-align: middle;
}

/* Center numeric/action headers */
.ca-list-table thead th:nth-child(6),
.ca-list-table thead th:nth-child(7),
.ca-list-table thead th:nth-child(8) {
  text-align: center;
}

/* ===============================
   BODY ROWS
================================ */
.ca-list-table tbody tr {
  background: #fff;
}

.ca-list-table tbody tr:nth-child(even) {
  background: #fffaf4;
}

.ca-list-table td {
  padding: 18px 16px;
  font-size: 16px;
  color: #4a3728;
  vertical-align: middle; /* 🔥 KEY FIX */
  line-height: 1.4; /* 🔥 KEY FIX */
}

/* ===============================
   CA NAME FIX (MAIN ISSUE)
================================ */
.ca-list-name {
  font-weight: 600;
  color: #3e2a1f;
  display: flex; /* 🔥 PERFECT ALIGNMENT */
  align-items: center; /* 🔥 */
  height: 100%;
}

/* ===============================
   STATUS BADGE
================================ */
.ca-list-status {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: default;
}

/* ACTIVE */
.ca-list-status.active {
  background: #c8f7dc;
  color: #0f6b3d;
}

.ca-list-status.active:hover {
  background: #b6f0d1;
  box-shadow: 0 6px 14px rgba(15, 107, 61, 0.35);
  transform: translateY(-1px);
}

/* INACTIVE */
.ca-list-status.inactive {
  background: #ffd6d6;
  color: #8a1f1f;
}

.ca-list-status.inactive:hover {
  background: #ffc1c1;
  box-shadow: 0 6px 14px rgba(138, 31, 31, 0.35);
  transform: translateY(-1px);
}
@keyframes ca-pulse-glow-active {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 107, 61, 0.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(15, 107, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 107, 61, 0);
  }
}

@keyframes ca-pulse-glow-inactive {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 31, 31, 0.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(138, 31, 31, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138, 31, 31, 0);
  }
}

.ca-list-status.active {
  animation: ca-pulse-glow-active 2s ease-out infinite;
}

.ca-list-status.inactive {
  animation: ca-pulse-glow-inactive 2s ease-out infinite;
}

/* ===============================
   AMOUNT
================================ */
.ca-list-amount {
  font-weight: 700;
  color: #3a2a20;
}

/* ===============================
   ACTION BUTTON
================================ */
.ca-list-view {
background:#c77d6b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.35s ease;
}
.ca-list-view:hover {
  background: linear-gradient(135deg, #5f3f2a, #b58555);
  box-shadow: 0 10px 22px rgba(122, 86, 58, 0.45);
  transform: translateY(-2px) scale(1.03);
  color: white;
}
/* Center numeric & action cells */
.ca-list-table td:nth-child(6),
.ca-list-table td:nth-child(7),
.ca-list-table td:nth-child(8) {
  text-align: center;
}

/* ===============================
   RESPONSIVE
================================ */
/* ============================================
   RESPONSIVE MEDIA QUERIES FOR CA LIST TABLE
============================================ */

/* Large Tablets & Small Laptops (up to 992px) */
@media (max-width: 992px) {
  .ca-list-card {
    overflow-x: auto;
  }
  
  .ca-list-table {
    min-width: 900px;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .ca-list-table thead th {
    padding: 16px 14px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  
  .ca-list-table td {
    padding: 16px 14px;
    font-size: 15px;
  }
  
  .ca-list-name {
    font-size: 15px;
  }
  
  .ca-list-status {
    padding: 7px 16px;
    font-size: 15px;
  }
}

/* Large Phones (600px and below) */
@media (max-width: 600px) {
  .ca-list-table thead th {
    padding: 14px 12px;
    font-size: 11px;
    letter-spacing: 0.4px;
  }
  
  .ca-list-table td {
    padding: 14px 12px;
    font-size: 14px;
  }
  
  .ca-list-name {
    font-size: 14px;
    align-items: flex-start;
  }
  
  .ca-list-status {
    padding: 6px 14px;
    font-size: 14px;
  }
}

/* Medium Phones (480px and below) */
@media (max-width: 480px) {
  .ca-list-table thead th {
    padding: 12px 10px;
    font-size: 10.5px;
  }
  
  .ca-list-table td {
    padding: 12px 10px;
    font-size: 13.5px;
    line-height: 1.3;
  }
  
  .ca-list-status {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 25px;
  }
  
  /* Center alignment for mobile */
  .ca-list-table thead th:nth-child(6),
  .ca-list-table thead th:nth-child(7),
  .ca-list-table thead th:nth-child(8) {
    text-align: center;
  }
}

/* Small Phones (375px and below) */
@media (max-width: 375px) {
  .ca-list-table thead th {
    padding: 10px 8px;
    font-size: 10px;
  }
  
  .ca-list-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .ca-list-status {
    padding: 4px 10px;
    font-size: 12px;
  }
}

/* Very Small Phones (320px and below) */
@media (max-width: 320px) {
  .ca-list-table thead th {
    padding: 8px 6px;
    font-size: 9.5px;
  }
  
  .ca-list-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .ca-list-status {
    padding: 3px 8px;
    font-size: 11.5px;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .ca-list-table thead th {
    padding: 12px 10px;
    font-size: 11px;
  }
  
  .ca-list-table td {
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  .ca-list-status:hover {
    transform: none;
    box-shadow: none;
  }
  
  .ca-list-table tbody tr {
    min-height: 55px;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .ca-list-table thead {
    background: linear-gradient(135deg, #7a563a, #c89b6d);
    background-size: cover;
  }
}
.ca-add-page {
  background: #faf6f1;
  min-height: 100vh;
  font-family: "Inter", sans-serif;

  /* ALIGN WITH LIST PAGE */
  padding: 110px 60px;
  margin-left: 240px;

  /* CLEANUP */
  margin-right: 0;
}

/* ===== HEADER ===== */
.ca-add-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.ca-add-header h2 {
  font-size: 27px;
  font-weight: 600;
  color: #3d2b1f;
}

.ca-add-header p {
  font-size: 17px;
  color: #7a6a58;
}

/* ===== FORM WRAPPER ===== */
.ca-add-form {
  max-width: 1165px;
}

/* ===== CARDS ===== */
.ca-add-card {
  background: #ffffff;
  border: 1px solid #e7dfd2;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.ca-add-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

/* ===== SECTION TITLE ===== */
.ca-add-title {
  font-size: 20px;
  font-weight: 600;
  color: #4a3728;
  margin-bottom: 16px;
  padding-left: 10px;
  position: relative;
}

.ca-add-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 6px;
  height: 20px;
  border-radius: 6px;
  background: #8b5e3c;
}

/* ===== GRID ===== */
.ca-add-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ca-add-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ===== FIELDS ===== */
.ca-add-field label {
  font-size: 16.5px;
  font-weight: 500;
  color: #5e4b3c;
  margin-bottom: 6px;
  display: block;
}

.ca-add-field span {
  color: #c0392b;
}

.ca-add-field input,
.ca-add-field select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #ddd3c7;
  background: #faf9f6;
  font-size: 15.5px;
  transition: all 0.25s ease;
}

.ca-add-field input:focus,
.ca-add-field select:focus {
  outline: none;
  background: #fff;
  border-color: #8b5e3c;
  box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.18);
}

/* ===== STATUS CARD ===== */
/* ===== STATUS CARD FIX ===== */
.ca-add-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}

/* Text alignment */
.ca-add-status-card h4 {
  margin-bottom: 4px;
}

.ca-add-status-card p {
  margin: 0;
  font-size: 16px;
  color: #7a6a58;
}

/* ===== TOGGLE SWITCH ===== */
.ca-add-switch {
  position: relative;
  width: 46px;
  height: 26px;
  display: inline-block;
}

/* Hide checkbox */
.ca-add-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track */
.ca-add-switch span {
  position: absolute;
  inset: 0;
  background: #e6dfd6;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Knob */
.ca-add-switch span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

/* ON state */
.ca-add-switch input:checked + span {
  background: #8b5e3c;
}

.ca-add-switch input:checked + span::after {
  transform: translateX(20px);
}

/* ===== ACTION BUTTONS ===== */
.ca-add-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  gap: 12px;
}

.ca-add-btn {
  padding: 9px 20px;
  font-size: 13.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ca-add-btn.cancel {
  background: #fff;
  border: 1px solid #d4c6b6;
  color: #6a543f;
  font-size: 16px;
  padding: 11px 30px;
}

.ca-add-btn.cancel:hover {
  background: #f3ede6;
}

.ca-add-btn.submit {
 
  border: 1px solid #d4c6b6;
  background: #c77d6b;
  color: #ffffff;
  font-size: 16px;
  padding: 11px 30px;
}

.ca-add-btn.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(139, 94, 60, 0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .ca-add-page {
    padding: 90px 80px;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .ca-add-grid-2,
  .ca-add-grid-3 {
    grid-template-columns: 1fr;
  }
}






/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
============================================ */

/* ======================
   SMALL PHONES (iPhone SE, Samsung Galaxy S8, etc.)
   Width: up to 375px
====================== */
@media (max-width: 375px) {
  /* Sidebar Footer */
  .sidebar-footer {
    padding: 10px 12px;
  }
  
  .admin-avatar {
    width: 32px;
    height: 32px;
  }
  
  .admin-name {
    font-size: 13px;
  }
  
  .admin-role {
    font-size: 11px;
  }
  
  /* Lead Page */
  .lead-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  
  .status {
    padding: 0px 12px;
    font-size: 11px;
  }
  
  /* Commission Page */
  .commission-card {
    padding: 14px 16px;
  }
  
  .search-input {
    max-width: 100%;
  }
  
  .status-filter {
    max-width: 100%;
    margin: 10px 0 0 0;
  }
  
  /* CA Dashboard */
  .ca-dash-wrapper {
    padding: 16px;
  }
  
  .ca-dash-title {
    font-size: 24px;
  }
  
  .ca-dash-subtitle {
    font-size: 14px;
  }
  
  .ca-dash-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .ca-dash-card {
    height: 100px;
    min-height: 100px;
    max-height: 100px;
  }
  
  .ca-dash-icon {
    width: 36px;
    height: 36px;
    margin-left: 12px;
    margin-right: 10px;
  }
  
  .ca-dash-card p {
    font-size: 14px;
  }
  
  .ca-dash-card h4 {
    font-size: 18px;
  }
  
  /* CA List */
  .ca-list-wrapper {
    padding: 90px 20px;
    margin-left: 0;
  }
  
  .ca-list-title {
    font-size: 24px;
  }
  
  .ca-list-subtitle {
    font-size: 14px;
  }
  
  .ca-list-filters {
    flex-direction: column;
  }
  
  .ca-list-select {
    min-width: 100%;
  }
  
  .ca-list-table thead th,
  .ca-list-table td {
    padding: 12px 8px;
    font-size: 14px;
  }
  
  .ca-list-status {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .ca-list-view {
    padding: 8px 9px;
    font-size: 14px;
  }
  
  /* CA Add Page */
  .ca-add-page {
    padding: 90px 20px;
    margin-left: 0;
  }
  
  .ca-add-header h2 {
    font-size: 22px;
  }
  
  .ca-add-grid-2,
  .ca-add-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .ca-add-actions {
    flex-direction: column;
  }
  
  .ca-add-btn {
    width: 100%;
    text-align: center;
  }
}
/* ===============================
   MOBILE VIEW (All Mobiles)
================================ */
@media (max-width: 767px) {
  .ca-list-view {
    padding: 8px 9px;
    font-size: 14px;
  }
}

/* ======================
   MEDIUM PHONES (iPhone 12/13/14, Samsung Galaxy S20/S21, Google Pixel)
   Width: 376px to 428px
====================== */
@media (min-width: 376px) and (max-width: 428px) {
  /* Sidebar Footer */
  .sidebar-footer {
    padding: 11px 13px;
  }
  
  /* Lead Page */
  .filter-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .lead-table td {
    padding: 12px 10px;
    font-size: 13px;
  }
  
  /* Commission Page */
  .commission-card {
    padding: 16px 18px;
  }
  
  .search-input {
    max-width: 100%;
  }
  
  .status-filter {
    max-width: 100%;
    margin: 10px 0;
  }
  
  /* CA Dashboard */
  .ca-dash-wrapper {
    padding: 20px;
  }
  
  .ca-dash-title {
    font-size: 26px;
  }
  
  .ca-dash-subtitle {
    font-size: 16px;
  }
  
  
  
  .ca-dash-card {
    height: 110px;
  }
  
  /* CA List */
  .ca-list-wrapper {
    padding: 100px 30px;
    margin-left: 0;
  }
  
  .ca-list-table {
    min-width: 700px;
  }
  
  .ca-list-filters {
    flex-wrap: wrap;
    flex-direction: column;
  }
  
  /* CA Add Page */
  .ca-add-page {
    padding: 100px 30px;
    margin-left: 0;
  }
  
  .ca-add-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ca-add-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Extra adjustment for 2x2 layout on slightly larger mobile */
@media (min-width: 376px) and (max-width: 480px) {
  .ca-dash-summary {
    flex-wrap: wrap;
    flex-direction: row;
  }
  
  .ca-dash-summary > .col {
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
  }
}@media (max-width: 375px) {
  .ca-dash-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .ca-dash-summary > .col {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
  }
  
  .ca-dash-card {
    width: 100%;
  }
}

/* ======================
   LARGE PHONES (iPhone Pro Max, Samsung Galaxy Note/Ultra)
   Width: 429px to 600px
====================== */
@media (min-width: 429px) and (max-width: 600px) {
  /* CA Dashboard */
  .ca-dash-wrapper {
    padding: 24px;
  }
  
  .ca-dash-summary > .col {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  
  .ca-dash-box-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .ca-dash-list .inner,
  .ca-dash-list .inner1,
  .ca-dash-list .inner2,
  .ca-dash-list .inner3 {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  /* CA List */
  .ca-list-wrapper {
    padding: 100px 40px;
    margin-left: 60px;
  }
  
  /* CA Add Page */
  .ca-add-page {
    padding: 100px 40px;
    margin-left: 60px;
  }
}

/* ======================
   TABLETS (iPad Mini, Samsung Galaxy Tab)
   Width: 601px to 768px
====================== */
@media (min-width: 601px) and (max-width: 768px) {
  /* Sidebar Footer */
  .sidebar-footer {
    padding: 12px 14px;
  }
  
  /* Lead Page */
  .filter-row {
    flex-wrap: wrap;
  }
  
  /* Commission Page */
  .commission-table-wrapper {
    overflow-x: auto;
  }
  
  /* CA Dashboard */
  .ca-dash-wrapper {
    padding: 26px;
  }
  
  .ca-dash-actions {
    flex-wrap: wrap;
  }
  
  .ca-dash-summary > .col {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  
  /* CA List */
  .ca-list-wrapper {
    padding: 100px 40px;
    margin-left: 80px;
  }
  
  .ca-list-table {
    min-width: 800px;
  }
  
  /* CA Add Page */
  .ca-add-page {
    padding: 100px 40px;
    margin-left: 80px;
  }
  
  .ca-add-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================
   SMALL TABLETS (iPad Air, Galaxy Tab S7)
   Width: 769px to 900px
====================== */
@media (min-width: 769px) and (max-width: 900px) {
  /* CA Dashboard */
  .ca-dash-summary > .col {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
  
  /* CA List */
  .ca-list-wrapper {
    padding: 110px 50px;
    margin-left: 120px;
  }
  
  /* CA Add Page */
  .ca-add-page {
    padding: 110px 50px;
    margin-left: 120px;
  }
}

/* ======================
   LAPTOPS (13-14 inch)
   Width: 901px to 1024px
====================== */
@media (min-width: 901px) and (max-width: 1024px) {
  /* CA Dashboard */
  .ca-dash-summary > .col {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
  
  /* CA List */
  .ca-list-wrapper {
    padding: 110px 50px;
    margin-left: 180px;
  }
  
  .ca-list-table thead th,
  .ca-list-table td {
    padding: 16px 12px;
    font-size: 15px;
  }
  
  /* CA Add Page */
  .ca-add-page {
    padding: 110px 50px;
    margin-left: 180px;
  }
}

/* ======================
   DESKTOPS (15+ inch)
   Width: 1025px and above
====================== */
@media (min-width: 1025px) {
  /* Default styles already defined in your CSS */
  /* These will apply for desktop sizes */
}

/* ======================
   LANDSCAPE ORIENTATION FIXES
====================== */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar-footer {
    position: relative;
    padding: 10px;
  }
  
  .ca-dash-card {
    height: 90px;
    min-height: 90px;
    max-height: 90px;
  }
  
  .ca-dash-icon {
    width: 32px;
    height: 32px;
  }
}

/* ======================
   HIGH-DPI (RETINA) DEVICES
====================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* You can add Retina-specific styles here if needed */
  .ca-dash-card {
    border-radius: 15px; /* Slightly smoother on Retina */
  }
  
  .ca-list-status {
    border-radius: 32px; /* More rounded on high-DPI */
  }
}

/* ======================
   DARK MODE SUPPORT
====================== */
@media (prefers-color-scheme: dark) {
  .ca-dash-box,
  .ca-list-card,
  .ca-add-card,
  .lead-table-wrapper,
  .commission-table-wrapper,
  .report-table-wrapper {
    background: #2d2d2d;
    border-color: #444;
  }
  
  .ca-dash-box h5,
  .ca-add-title,
  .lead-table thead th,
  .commission-table th,
  .report-table th {
    color: #e0e0e0;
  }
  
  .ca-dash-list li,
  .ca-list-table tbody tr {
    background: #333;
  }
  
  .ca-list-search,
  .ca-list-select,
  .ca-add-field input,
  .ca-add-field select {
    background: #333;
    border-color: #555;
    color: #fff;
  }
}

/* ======================
   PRINT STYLES
====================== */
@media print {
  .sidebar-footer,
  .ca-dash-actions,
  .ca-list-add-btn,
  .ca-add-actions,
  .export-btn,
  .add-lead-btn,
  .mark-paid-btn {
    display: none !important;
  }
  
  .ca-dash-wrapper,
  .ca-list-wrapper,
  .ca-add-page {
    padding: 20px !important;
    margin-left: 0 !important;
  }
  
  .ca-dash-card,
  .ca-list-card,
  .ca-add-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}








/* ============================================
   MEDIA QUERIES FOR CA DASHBOARD ACTION BUTTONS
============================================ */

/* Small Phones (iPhone SE, Samsung Galaxy S8, etc.) - up to 375px */
@media (max-width: 375px) {
  .ca-dash-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  
  .ca-dash-btn-outline,
  .ca-dash-btn-primary {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    text-align: center;
    justify-content: center;
  }
}

/* Medium Phones (iPhone 12/13/14, Samsung Galaxy S20/S21) - 376px to 428px */
@media (min-width: 376px) and (max-width: 428px) {
  .ca-dash-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .ca-dash-btn-outline,
  .ca-dash-btn-primary {
    width: 100%;
    padding: 12px 18px;
    font-size: 16px;
    text-align: center;
  }
}

/* Large Phones (iPhone Pro Max, Samsung Galaxy Note/Ultra) - 429px to 600px */
@media (min-width: 429px) and (max-width: 600px) {
  .ca-dash-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .ca-dash-btn-outline,
  .ca-dash-btn-primary {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 11px 16px;
    font-size: 16px;
  }
}

/* Tablets (iPad Mini, Samsung Galaxy Tab) - 601px to 768px */
@media (min-width: 601px) and (max-width: 768px) {
  .ca-dash-actions {
    gap: 10px;
  }
  
  .ca-dash-btn-outline,
  .ca-dash-btn-primary {
    padding: 10px 16px;
    font-size: 16px;
  }
}

/* Small Tablets (iPad Air, Galaxy Tab S7) - 769px to 900px */
@media (min-width: 769px) and (max-width: 900px) {
  .ca-dash-actions {
    gap: 10px;
  }
  
  .ca-dash-btn-outline,
  .ca-dash-btn-primary {
    padding: 10px 18px;
    font-size: 16px;
  }
}

/* Landscape Orientation Fix */
@media (max-height: 500px) and (orientation: landscape) {
  .ca-dash-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .ca-dash-btn-outline,
  .ca-dash-btn-primary {
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* Very Small Screens (Old devices) */
@media (max-width: 320px) {
  .ca-dash-actions {
    gap: 6px;
  }
  
  .ca-dash-btn-outline,
  .ca-dash-btn-primary {
    padding: 10px 14px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Hover Effects for Desktop Only */
@media (min-width: 1025px) {
  .ca-dash-btn-outline:hover {
    background: #32241b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 36, 27, 0.2);
  }
  
  .ca-dash-btn-primary:hover {
    background: #32241b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  }
}




/* ============================================
   MEDIA QUERIES FOR CA DASHBOARD BOX & AMOUNT
============================================ */

/* Small Phones (iPhone SE, Samsung Galaxy S8, etc.) - up to 375px */
@media (max-width: 375px) {
  .ca-dash-box {
    padding: 16px;
    border-radius: 12px;
    height: auto;
    min-height: fit-content;
  }
  
  .ca-dash-amount {
    font-size: 14px;
    text-align: left;
    margin-top: 8px;
  }
  
  .ca-dash-amount small {
    font-size: 11px;
  }
}

/* Medium Phones (iPhone 12/13/14, Samsung Galaxy S20/S21) - 376px to 428px */
@media (min-width: 376px) and (max-width: 428px) {
  .ca-dash-box {
    padding: 18px;
    border-radius: 14px;
  }
  
  .ca-dash-amount {
    font-size: 14px;
    text-align: left;
  }
  
  .ca-dash-amount small {
    font-size: 12px;
  }
}

/* Large Phones (iPhone Pro Max, Samsung Galaxy Note/Ultra) - 429px to 600px */
@media (min-width: 429px) and (max-width: 600px) {
  .ca-dash-box {
    padding: 20px;
  }
  
  .ca-dash-amount {
    font-size: 14.5px;
    text-align: right;
  }
}

/* Tablets (iPad Mini, Samsung Galaxy Tab) - 601px to 768px */
@media (min-width: 601px) and (max-width: 768px) {
  .ca-dash-box {
    padding: 20px;
  }
  
  .ca-dash-amount {
    font-size: 14.5px;
  }
}

/* Small Tablets (iPad Air, Galaxy Tab S7) - 769px to 900px */
@media (min-width: 769px) and (max-width: 900px) {
  .ca-dash-box {
    padding: 21px;
  }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .ca-dash-box {
    padding: 16px;
    min-height: auto;
    height: auto;
  }
}

/* Fix for Right Side CA List Box specifically */
@media (max-width: 768px) {
  .ca-dash-ca-list .ca-dash-box {
    height: auto;
    min-height: 300px; /* Ensure minimum height */
  }
}

/* Amount alignment for responsive tables */
@media (max-width: 768px) {
  .ca-dash-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .ca-dash-amount {
    text-align: left;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
  }
}

/* For very small screens where amount might overflow */
@media (max-width: 320px) {
  .ca-dash-amount {
    font-size: 13px;
    word-break: break-all;
  }
  
  .ca-dash-amount small {
    display: block;
    margin-top: 2px;
  }
  
}
/* Default: no gap on tablets and desktops */
.custom-gap {
  gap: 0;
}

/* Apply gap only on mobile devices */
@media (max-width: 767px) {
  .custom-gap {
    gap: 20px; /* change this value as needed */
  }
}


/* ============================================
   MOBILE MEDIA QUERIES FOR CA LIST ADD BUTTON
============================================ */

/* Extra Small Phones (iPhone 5/SE, very small devices) - up to 320px */
@media (max-width: 320px) {
  .ca-list-add-btn {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px;
  }
}

/* Small Phones (iPhone SE, Galaxy S8, etc.) - 321px to 375px */
@media (min-width: 321px) and (max-width: 375px) {
  .ca-list-add-btn {
    padding: 9px 14px;
    font-size: 15px;
    min-width: 140px;
    border-radius: 7px;
  }
}

/* Medium Phones (iPhone 12/13/14, Samsung Galaxy S20/S21) - 376px to 428px */
@media (min-width: 376px) and (max-width: 428px) {
  .ca-list-add-btn {
    padding: 10px 16px;
    font-size: 16px;
    min-width: 150px;
  }
}

/* Large Phones (iPhone Pro Max, Samsung Galaxy Note/Ultra) - 429px to 600px */
@media (min-width: 429px) and (max-width: 600px) {
  .ca-list-add-btn {
    padding: 10px 18px;
    font-size: 17px;
  }
}

/* Tablets (iPad Mini, Samsung Galaxy Tab) - 601px to 768px */
@media (min-width: 601px) and (max-width: 768px) {
  .ca-list-add-btn {
    padding: 10px 18px;
    font-size: 17px;
  }
}

/* ALL Mobile Devices (up to 768px) - Common styles */
@media (max-width: 768px) {
  .ca-list-add-btn {
    width: 100%; /* Full width on mobile */
    display: block;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  /* When button is in a flex container with other elements */
  .ca-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .ca-list-add-btn {
    order: 3; /* Move button to bottom if needed */
    margin-left: 0;
    margin-right: 0;
  }
}

/* Mobile Portrait (height concerns) */
@media (max-width: 768px) and (orientation: portrait) {
  .ca-list-add-btn {
    padding: 12px 18px; /* Slightly taller for better touch */
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .ca-list-add-btn {
    padding: 8px 16px;
    width: auto; /* Not full width in landscape */
    min-width: 160px;
  }
  
  .ca-list-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* For very small height screens */
@media (max-height: 500px) {
  .ca-list-add-btn {
    padding: 6px 14px;
    font-size: 15px;
  }
}

/* Hover effects for desktop only (disable hover on touch devices) */
@media (min-width: 769px) {
  .ca-list-add-btn:hover {
    background: #c77d6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  }
}
/* Tablet */
@media (max-width: 992px) {
  .filter-row {
    gap: 16px;
  }

  .search-box input {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .filter-row {
    flex-direction: column;
    gap: 14px;
  }

  .search-box,
  .status-filter {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }
}
/* ============================================
   REPORT PAGE MOBILE MEDIA QUERIES
============================================ */

/* ALL MOBILE DEVICES (Up to 768px) */
@media (max-width: 768px) {
  /* Report Tabs */
  .report-tabs {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
  
  .report-tabs .tab {
    flex: 1;
    min-width: calc(50% - 4px);
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Export Button */
  .export-btn {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 10px 14px;
  }
  
  /* CA Filter */
  .ca-filter {
    max-width: 100%;
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 15px;
  }
  
  /* Table Wrapper */
  .report-table-wrapper {
    border-radius: 10px;
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
  }
  
  /* Table */
  .reports-section .report-table {
    min-width: 800px;
    border: 1px solid #ddd;
  }
  
  .reports-section .report-table th,
  .reports-section .report-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .report-table th {
    font-size: 11px;
    padding: 12px 10px;
    white-space: nowrap;
  }
  
  .report-table td {
    font-size: 13px;
  }
  
  /* Badges */
  .badge {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 70px;
    text-align: center;
  }
  
  /* Total Row */
  .total-row td {
    font-size: 14px;
    padding: 14px 12px;
  }
}

/* LARGE PHONES (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
  .report-tabs .tab {
    min-width: calc(33.333% - 6px);
    font-size: 13.5px;
    padding: 9px 10px;
  }
  
  .reports-section .report-table th,
  .reports-section .report-table td {
    padding: 11px 10px;
    font-size: 13.5px;
  }
  
  .report-table th {
    font-size: 11.5px;
  }
}

/* MEDIUM PHONES (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
  .report-tabs {
    gap: 6px;
  }
  
  .report-tabs .tab {
    min-width: calc(50% - 3px);
    font-size: 13px;
    padding: 8px 10px;
  }
  
  .ca-filter {
    padding: 11px 13px;
    font-size: 14.5px;
  }
  
  .reports-section .report-table {
    min-width: 750px;
  }
  
  .reports-section .report-table th,
  .reports-section .report-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .badge {
    padding: 3px 7px;
    font-size: 11.5px;
    min-width: 65px;
  }
}

/* SMALL PHONES (321px - 375px) - iPhone SE, etc. */
@media (min-width: 321px) and (max-width: 375px) {
  .report-tabs {
    gap: 5px;
  }
  
  .report-tabs .tab {
    min-width: calc(50% - 3px);
    font-size: 12.5px;
    padding: 7px 9px;
    border-radius: 6px;
  }
  
  .export-btn {
    padding: 9px 12px;
    font-size: 13.5px;
  }
  
  .ca-filter {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 7px;
  }
  
  .reports-section .report-table {
    min-width: 700px;
  }
  
  .reports-section .report-table th,
  .reports-section .report-table td {
    padding: 9px 7px;
    font-size: 12.5px;
  }
  
  .report-table th {
    font-size: 10.5px;
    padding: 10px 8px;
  }
  
  .badge {
    padding: 3px 6px;
    font-size: 11px;
    min-width: 60px;
  }
}

/* VERY SMALL PHONES (Up to 320px) - iPhone 5, etc. */
@media (max-width: 320px) {
  .report-tabs {
    gap: 4px;
  }
  
  .report-tabs .tab {
    min-width: calc(50% - 2px);
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 5px;
  }
  
  .export-btn {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .ca-filter {
    padding: 9px 11px;
    font-size: 13.5px;
    border-radius: 6px;
  }
  
  .reports-section .report-table {
    min-width: 680px;
  }
  
  .reports-section .report-table th,
  .reports-section .report-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .report-table th {
    font-size: 10px;
    padding: 9px 7px;
  }
  
  .badge {
    padding: 2px 5px;
    font-size: 10.5px;
    min-width: 55px;
  }
}

/* ============================================
   LANDSCAPE MODE
============================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .report-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  
  .report-tabs .tab {
    flex: none;
    min-width: auto;
    white-space: nowrap;
  }
  
  .report-table-wrapper {
    margin: 0;
    padding: 0;
  }
  
  .reports-section .report-table {
    min-width: 850px;
  }
}

/* ============================================
   TABLETS (601px - 768px)
============================================ */
@media (min-width: 601px) and (max-width: 768px) {
  .report-tabs {
    gap: 10px;
  }
  
  .report-tabs .tab {
    min-width: auto;
    flex: none;
    padding: 10px 16px;
  }
  
  .export-btn {
    width: auto;
    margin-top: 0;
  }
  
  .reports-section .report-table {
    min-width: 900px;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATION
============================================ */
@media (hover: none) and (pointer: coarse) {
  .report-tabs .tab {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .export-btn {
    min-height: 44px;
  }
  
  .ca-filter {
    min-height: 44px;
  }
  
  /* Larger touch targets for table rows */
  .report-table tbody tr {
    min-height: 50px;
  }
}

/* ============================================
   EXPORT TOAST MOBILE FIXES
============================================ */
@media (max-width: 768px) {
  #export-toast-container {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    justify-content: center;
  }
  
  .export-toast {
    min-width: auto;
    width: 100%;
    max-width: 300px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    margin-top: 6px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .export-toast {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
  }
}

/* ============================================
   DARK MODE SUPPORT
============================================ */
@media (prefers-color-scheme: dark) {
  @media (max-width: 768px) {
    .report-tabs .tab {
      background: #333;
      border-color: #444;
      color: #ddd;
    }
    
    .report-tabs .tab.active {
      background: #444;
      border-color: #c57b3c;
      color: #c57b3c;
    }
    
    .export-btn {
      background: #333;
      border-color: #444;
      color: #ddd;
    }
    
    .ca-filter {
      background: #333;
      border-color: #555;
      color: #fff;
    }
    
    .report-table-wrapper {
      background: #2d2d2d;
      border-color: #444;
    }
    
    .report-table th {
      background: #333;
      color: #ddd;
    }
    
    .report-table td {
      color: #ddd;
    }
    
    .total-row {
      background: #3a3a3a;
    }
    
    .badge.new {
      background: #2c3e50;
      color: #3498db;
    }
    
    .badge.progress {
      background: #7d6608;
      color: #f1c40f;
    }
    
    .badge.converted {
      background: #145a32;
      color: #58d68d;
    }
    
    .badge.dropped {
      background: #78281f;
      color: #e74c3c;
    }
  }
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
  @media (max-width: 768px) {
    .report-tabs,
    .export-btn,
    .ca-filter {
      display: none !important;
    }
    
    .report-table-wrapper {
      overflow: visible !important;
      border: 1px solid #000 !important;
      box-shadow: none !important;
    }
    
    .reports-section .report-table {
      min-width: 100% !important;
      width: 100% !important;
    }
  }
}










/* =====================================================
   CA PROFILE – COMPLETE CSS (NO CONFLICT)
===================================================== */

/* ---------- BASE ---------- */
.ca-profile-wrapper {
  max-width: 1200px;
  margin: 60px 0 0 290px;
  padding: 50px;
  font-family: "Inter", system-ui, sans-serif;
  color: #2b1e16;
}


/* ---------- HEADER ---------- */
.ca-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ca-profile-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ca-profile-back-btn {
  font-size: 20px;
  text-decoration: none;
  color: #6b4e3d;
}

.ca-profile-name {
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ca-profile-firm {
  font-size: 17px;
  color: #8b6f5a;
  margin-top: 4px;
}

.ca-profile-status {
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: lowercase;
}

.ca-profile-status-active {
  background: #e6f4ea;
  color: #1a7f37;
}

.ca-profile-edit-btn {
  background: #7b5336;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- SUMMARY CARDS ---------- */
.ca-profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ca-profile-summary-card {
  background: #fff;
  border: 1px solid #eee2d6;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
}
.ca-profile-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-color: #d6c4a6;
}

.ca-profile-summary-content p {
  font-size: 17px;
  color: #8b6f5a;
  margin-bottom: 4px;
}

.ca-profile-summary-content h3 {
  font-size: 22px;
  font-weight: 600;
}

/* ---------- ICONS ---------- */
.ca-profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ca-profile-icon-blue {
  background: #eaf2ff;
  color: #3b6fdc;
}

.ca-profile-icon-green {
  background: #eaf8f0;
  color: #1a7f37;
}

.ca-profile-icon-pink {
  background: #fdeff3;
  color: #d9466d;
}

.ca-profile-icon-orange {
  background: #fff4e5;
  color: #d97706;
}

/* ---------- CONTACT CARD ---------- */
.ca-profile-contact-card {
  background: #fff;
  border: 1px solid #eee2d6;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.ca-profile-section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

.ca-profile-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ca-profile-contact-item {
  font-size: 16px;
  color: #5a4030;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ca-tab-content {
  display: none;
}

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

.ca-profile-tab {
  padding: 10px 18px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 500;
}

.ca-profile-tab-active {
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
}

/* ---------- TABS ---------- */
.ca-profile-tab-header {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ca-profile-tab {
  background: #f4ede7;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: #6b4e3d;
  cursor: pointer;
}

.ca-profile-tab-active {
  background: #fff;
  border: 1px solid #e6d8cc;
  font-weight: 600;
}

/* ---------- TABLE ---------- */
.ca-profile-table-card {
  background: #fff;
  border: 1px solid #eee2d6;
  border-radius: 14px;
  padding: 12px;
}

.ca-profile-table {
  width: 100%;
  border-collapse: collapse;
}

.ca-profile-table thead {
  background: #faf6f2;
}

.ca-profile-table th,
.ca-profile-table td {
  padding: 14px;
  font-size: 16px;
  text-align: left;
  
}

.ca-profile-table th {
  font-weight: 600;
  color: #6b4e3d;
}

.ca-profile-table tbody tr {
  border-top: 1px solid #f0e5da;
}

/* ---------- BADGES ---------- */
.ca-profile-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: lowercase;
}

.ca-profile-badge-success {
  background: #e6f4ea;
  color: #1a7f37;
}

.ca-profile-badge-info {
  background: #eef5ff;
  color: #2563eb;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .ca-profile-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ca-profile-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ca-profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ca-profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .ca-profile-contact-grid {
    grid-template-columns: 1fr;
  }

  .ca-profile-edit-btn {
    width: 100%;
  }
}
@media (max-width: 1024px) {
  .ca-profile-wrapper {
    margin: 80px 20px 20px 20px;
    padding: 30px;
    max-width: 100%;
  }

  .ca-profile-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ca-profile-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .ca-profile-wrapper {
    margin: 70px 16px 16px 16px;
    padding: 20px;
  }

  /* Header stack */
  .ca-profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ca-profile-edit-btn {
    width: 100%;
  }

  /* Summary cards */
  .ca-profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .ca-profile-summary-card {
    min-height: auto;
  }

  /* Contact section */
  .ca-profile-contact-grid {
    grid-template-columns: 1fr;
  }

  /* Tabs scroll */
  .ca-profile-tab-header {
    overflow-x: auto;
    white-space: nowrap;
  }

  .ca-profile-tab {
    flex-shrink: 0;
  }

  /* Table scroll */
  .ca-profile-table-card {
    overflow-x: auto;
  }

  .ca-profile-table {
    min-width: 700px;
  }
}
@media (max-width: 480px) {
  .ca-profile-wrapper {
    margin: 60px 12px 12px 12px;
    padding: 16px;
  }

  .ca-profile-name {
    font-size: 18px;
  }

  .ca-profile-firm {
    font-size: 13px;
  }

  .ca-profile-summary-content h3 {
    font-size: 18px;
  }

  .ca-profile-summary-content p {
    font-size: 12px;
  }

  .ca-profile-section-title {
    font-size: 15px;
  }

  .ca-profile-contact-item {
    font-size: 13px;
  }

  .ca-profile-edit-btn {
    padding: 12px;
    font-size: 14px;
  }
}









    /* =========================
       CA EDIT PAGE
    ========================= */

    .ca-edit-wrapper {
   max-width: 1200px;
  margin: 60px 0 0 290px;
  padding: 50px;
  font-family: "Inter", system-ui, sans-serif;
  color: #2b1e16;
    }

    .ca-edit-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }

    .ca-edit-back {
      font-size: 20px;
      color: #000;
      text-decoration: none;
    }

    .ca-edit-title h3 {
      margin: 0;
      font-weight: 600;
    }

    .ca-edit-title small {
      color: #777;
      font-size: 15px;
    }

    .ca-edit-card {
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      margin-bottom: 18px;
      border: 1px solid #eee;
    }

    .ca-edit-card h6 {
      font-weight: 600;
      margin-bottom: 16px;
      font-size: 18px;
    }

    .ca-edit-input,
    .ca-edit-select {
      height: 42px;
      font-size: 14px;
    }

  /* =========================
   STATUS SECTION (MATCH IMAGE)
========================= */

.ca-edit-status-card {
  padding: 18px 20px;
}

.ca-edit-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ca-edit-status-text h6 {
  margin: 0;
  font-weight: 600;
}

.ca-edit-status-text p {
  margin: 4px 0 0;
  font-size: 15px;
  color: #8a5a3c;
}

/* ===== Custom Toggle Switch ===== */

.ca-edit-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.ca-edit-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ca-edit-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d6c2b4;
  border-radius: 50px;
  transition: 0.3s;
}

.ca-edit-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

/* ON STATE */
.ca-edit-switch input:checked + .ca-edit-slider {
  background-color: #7b4a2e;
}

.ca-edit-switch input:checked + .ca-edit-slider::before {
  transform: translateX(22px);
}

/* =========================
   COMMISSION INPUT FIX
========================= */

.ca-edit-commission-row {
  align-items: flex-end;
}

.ca-edit-input,
.ca-edit-select {
  width: 100%;
  height: 44px;              /* SAME HEIGHT */
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  background: #fff;
}

.ca-edit-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 34px;
}

/* focus state */
.ca-edit-input:focus,
.ca-edit-select:focus {
  outline: none;
  border-color: #7b4a2e;
  box-shadow: 0 0 0 2px rgba(123, 74, 46, 0.1);
}

    .ca-edit-actions {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 10px;
    }

    .ca-edit-cancel {
      border: 1px solid #ccc;
      background: #fff;
      padding: 8px 16px;
    }

    .ca-edit-update {
      background: #7b4a2e;
      color: #fff;
      padding: 8px 18px;
      border: none;
    }

    .ca-edit-update:hover {
      background: #623926;
      color: #fff;
    }
  @media (max-width: 1024px) {
  .ca-edit-wrapper {
    margin: 80px 20px 20px 20px; /* remove sidebar gap */
    padding: 30px;
    max-width: 100%;
  }

  .ca-edit-card {
    padding: 18px;
  }
}
@media (max-width: 768px) {
  .ca-edit-wrapper {
    margin: 70px 16px 16px 16px;
    padding: 20px;
  }

  /* Header stack */
  .ca-edit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ca-edit-title h3 {
    font-size: 18px;
  }

  .ca-edit-title small {
    font-size: 13px;
  }

  /* Status row stack */
  .ca-edit-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Buttons full width */
  .ca-edit-actions {
    flex-direction: column;
  }

  .ca-edit-cancel,
  .ca-edit-update {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .ca-edit-wrapper {
    margin: 60px 12px 12px 12px;
    padding: 16px;
  }

  .ca-edit-title h3 {
    font-size: 16px;
  }

  .ca-edit-card h6 {
    font-size: 14px;
  }

  .ca-edit-input,
  .ca-edit-select {
    height: 42px;
    font-size: 13px;
  }

  .ca-edit-status-text p {
    font-size: 12px;
  }

  .ca-edit-switch {
    width: 44px;
    height: 24px;
  }

  .ca-edit-slider::before {
    width: 18px;
    height: 18px;
    top: 3px;
  }
}
.ca-dash-list li div span{
display:block;
margin-top:4px;
font-size:14px;
color:#a56c4e;
}

.ca-dash-list li{
display:flex;
justify-content:space-between;
align-items:center;
}
.lead-card{
display:flex;
justify-content:space-between;
align-items:center;
}

.lead-left{
display:flex;
flex-direction:column;
}

.lead-sub{
font-size:14px;
color:#a56c4e;
margin-top:4px;
}