td a[href^="tel:"] {
  color: #e50914;   /* nice red like Myntra */
  font-weight: bold;
  text-decoration: none;
}

td a[href^="tel:"]:hover {
  text-decoration: underline;
}

.row-interested { background:#d4f8d4 !important; }
.row-not-interested { background:#ffd6d6 !important; }
.row-not-connected { background:#fff7cc !important; }


.pay_fixed{padding: 2px!important;}
.fc-booking-overlay {
  overflow-y: auto !important;
}
.ptable td,
.ptable th {
  padding: 2px !important;       /* remove inside spacing */
  margin: 0;
}

.fc-crm-city-form {
    margin: 7px 0;
}
.fc-crm-city-form input[type="text"], input[type="email"]{
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.fc-crm-city-form input[type="submit"] {
    padding: 4px 8px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.fc-crm-city-form input[type="submit"]:hover {
    background: #135e96;
}
/* =========================
   Fashion CRM - DataTables
========================= */

/* Responsive wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
/* ===== Scrollbar Styling ===== */
.table-wrapper::-webkit-scrollbar {
  height: 14px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background-color: #ff4081;
  border-radius: 10px;
  border: 3px solid #f1f1f1;
}
.table-wrapper::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 10px;
}


/* Zebra & Hover */
.ccm-table tbody tr:nth-child(even) { background: #fafafa; }
.ccm-table tbody tr:hover { background: #fff3f8; }

/* Round Corners */
.ccm-table thead th:first-child { border-top-left-radius: 12px; }
.ccm-table thead th:last-child { border-top-right-radius: 12px; }
.ccm-table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.ccm-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

.ccm-table thead th:nth-child(1) { width: 20%; } /* Company name */
.ccm-table thead th:nth-child(2) { width: 10%; } /* Phone */
.ccm-table thead th:nth-child(3) { width: 25%; } /* Address */
.ccm-table thead th:nth-child(4) { width: 10%; } /* Taluka */
.ccm-table thead th:nth-child(5) { width: 10%; } /* District */
.ccm-table thead th:nth-child(6) { width: 10%; } /* State */
.ccm-table thead th:nth-child(7) { width: 15%; } /* Actions */

/* =========================
   Buttons Inside Table
========================= */

.ccm-table button,
.ccm-table .btn {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg, #ff4081, #c2185b);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ccm-table button:hover,
.ccm-table .btn:hover {
  background: linear-gradient(90deg, #ff4081, #353b7a);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255,64,129,0.25);
}

/* Centered Book Button */
#book_selected {
  display: block;
  margin: 15px auto;
  padding: 10px 20px;
  background: linear-gradient(90deg, #4caf50, #2e7d32);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}
#book_selected:hover {
  background: linear-gradient(90deg, #2e7d32, #1b5e20);
}

/* =========================
   DataTables Controls
========================= */
.dataTables_wrapper {
  font-size: 11px;
  margin: 10px auto 20px;
  max-width: 100%;
}

/* Length + Search side by side */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 6px 12px;
  font-size: 11px;
}
/* Search box */
.dataTables_wrapper .dataTables_filter input {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 20px;
  height: 22px;
  width: 160px;
  transition: 0.2s;
}
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #ff5fa2;
  box-shadow: 0 0 4px rgba(255,95,162,0.3);
}

/* Dropdown */
.dataTables_wrapper .dataTables_length select {
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  height: 22px;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 8px;
}
.dataTables_wrapper .dataTables_paginate a {
  font-size: 11px;
  padding: 3px 6px;
  margin: 0 2px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dataTables_wrapper .dataTables_paginate a:hover { background: #ffe6f0; }
.dataTables_wrapper .dataTables_paginate a.current {
  background: #ff5fa2;
  color: #fff !important;
  font-weight: 600;
  border-color: #ff4081;
}
/* Remove DataTables default padding */
table.dataTable tbody th,
table.dataTable tbody td {
    padding: 2px !important;   /* or set to 4px / 6px if you want small space */
}


/* =========================
   Responsive Adjustments
========================= */
@media (max-width: 768px) {
  .ccm-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ccm-table thead, .ccm-table tbody,
  .ccm-table th, .ccm-table td, .ccm-table tr {
    white-space: nowrap; /* keep structure like laptop */
  }
  
  
  .dataTables_wrapper .dataTables_filter input {
    float: right;
  }

}
/* Mobile: scrollable slider */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ccm-table {
    min-width: 900px; /* keep structure */
    font-size: 10px;
  }
}

/* Desktop: restore full width */
@media (min-width: 769px) {
  .ccm-table {
    min-width: unset; /* remove forced width */
    width: 100%;
    font-size: 12px;
  }
  /* Shortlisted Clients Table - Make Address Column Smaller */
#shortlisted_clients td:nth-child(4),
#shortlisted_clients th:nth-child(4) {
    max-width: 280px;    /* adjust as needed */
    white-space: nowrap; /* keep in single line */
    overflow: hidden;
    text-overflow: ellipsis; /* show ... if too long */
}
  #shortlisted_clients td:nth-child(4):hover {
    white-space: normal; 
    overflow: visible;
}
/* Booked Clients table Applicant Name column */
#booked_clients_table td:nth-child(2),
#booked_clients_table th:nth-child(2) {
    max-width: 180px;        /* adjust as needed */
    white-space: nowrap;     /* keep text on one line */
    overflow: hidden;
    text-overflow: ellipsis; /* add ... if text too long */
}

/* Optional: expand full text on hover */
#booked_clients_table td:nth-child(2):hover {
    white-space: normal;
    overflow: visible;
    position: relative;
    z-index: 5;
    background: #fff; /* ensures text visible over table bg */
  }}

/* 🔹 Container row (already fine) *//* ===========================
   🔹 Filters Row
=========================== */
.fc-filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap; /* mobile default */
}

/* Compact selects */
.fc-filter-row select {
  width: 120px;
  min-width: 120px;
  padding: 2px 4px;
  font-size: 12px;
}

/* Compact search */
.fc-filter-row input[type="text"] {
  width: 160px;
  min-width: 160px;
  padding: 2px 4px;
  font-size: 12px;
}

/* 🔹 Compact Apply + Filter buttons */
/* Force compact Filter + Apply buttons */
.fc-btn,
#apply-btn,
button.fc-btn[type="submit"],
input[type="submit"].fc-btn {
  padding: 2px 10px !important;
  font-size: 12px !important;
  height: 26px !important;
  line-height: 1.2 !important;
  border-radius: 3px !important;
  background: #c8102e !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.fc-btn:hover,
#apply-btn:hover {
  background: #a00d23 !important;
}
/* Desktop → all in one row */
@media (min-width: 992px) {
  .fc-filter-row {
    flex-wrap: nowrap !important;
    justify-content: flex-start;
  }
}

/* Mobile → 2 per row */
@media (max-width: 991px) {
  .fc-filter-row select,
  .fc-filter-row input,
  .fc-btn {
    flex: 1 1 48%;
    max-width: 48%;
  }
}

/* Record Count */
.fc-record-count {
  font-size: 12px;
  color: #333;
  background: #f8f8f8;
  padding: 2px 6px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* ===========================
   🔹 Table Styling
=========================== */
.fc-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fc-table-wrapper table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  table-layout: auto;
}

.fc-table-wrapper th,
.fc-table-wrapper td {
  padding: 2px 2px !important;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 11px;
  border: 1px solid #ddd;
}


.fc-table-wrapper th:first-child,
.fc-table-wrapper td:first-child,
.fc-table-wrapper th:nth-child(2),
.fc-table-wrapper td:nth-child(2),
.fc-table-wrapper th:nth-child(10),
.fc-table-wrapper td:nth-child(10),
.fc-table-wrapper th:last-child,
.fc-table-wrapper td:last-child {
  width: 50px;
  text-align: center;
}

.fc-table-wrapper th:nth-child(5),
.fc-table-wrapper td:nth-child(5) 
{
   white-space: normal;
  min-width: 100px;
}
.fc-table-wrapper th:nth-child(3),
.fc-table-wrapper td:nth-child(3) 
{
   white-space: normal;
  width: 120px;
}
.fc-table-wrapper th:nth-child(6),
.fc-table-wrapper td:nth-child(6), 
.fc-table-wrapper th:nth-child(7),
.fc-table-wrapper td:nth-child(7), 
.fc-table-wrapper th:nth-child(8),
.fc-table-wrapper td:nth-child(8)   {
  white-space: normal;
  width: 85px;
}
*/
/* ===========================
   🔹 Pagination
=========================== */
.fc-pagination ul {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
}

.fc-pagination li {
  border: 1px solid #ddd;
  padding: 2px 6px !important;
  font-size: 12px;
  border-radius: 3px;
}

.fc-pagination li a {
  text-decoration: none;
}

.fc-pagination .current {
  background: #c8102e;
  color: #fff;
  border-color: #c8102e;
}

/* =============================
   SHORTLISTED CLIENTS TABLE
============================= */
.ssm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  margin: 10px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  table-layout: auto;
}

/* Header */
.ssm-table thead th {
  background: #ba0e29;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 6px 8px;
  font-size: 11px;
  }

/* Body */
.ssm-table tbody td {
  padding: 6px 8px;
  font-size: 11px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  text-align: left;
  word-break: break-word;
  transition: background 0.2s ease;
}

/* Zebra striping */
.ssm-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.ssm-table tbody tr:hover {
  background: #eaf4ff;
}

/* Table corners */
.ssm-table thead th:first-child { border-top-left-radius: 12px; }
.ssm-table thead th:last-child { border-top-right-radius: 12px; }
.ssm-table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.ssm-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

/* =============================
   BUTTON: BOOK NOW
============================= */
.book-now-btn {
  font-size: 10px;
    padding: 2px 10px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(90deg, #ff4081, #c2185b);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.book-now-btn:hover {
  background: linear-gradient(90deg, #ff4081, #353b7a);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255,64,129,0.25);
}

/* =============================
   WRAPPER
============================= */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
  }
  .ssm-table {
    min-width: 900px; /* Keep full table layout scrollable */
    font-size: 10px;
  }
  .ssm-table td, .ssm-table th {
    white-space: nowrap;
    padding: 4px 6px;
  }
}


/* Wrapper default: stack vertically, center content */
.certificate-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Modal image preview area default */
#certificate-preview {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
#certificate-preview-form input[type="text"], {
padding:2px!important;	
	border-radius:4px;
}
/* Canvas inside preview */
#certificate-preview canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive: Desktop layout AFTER preview is shown */
@media (min-width: 768px) {
  .certificate-wrapper.preview-shown {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
  }

  .certificate-wrapper.preview-shown .certificate-form {
    width: 48%;
  }

  .certificate-wrapper.preview-shown #certificate-preview {
    width: 48%;
    margin-top: 0 !important;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  #certificate-preview canvas {
    max-width: 100%;
    height: auto;
    display: block;
  }
}
/* =============================
   CLIENT NOMINATION TABLE STYLE
============================= */


/* Rounded corners */
.ccm-table thead th:first-child {
  border-top-left-radius: 12px;
}
.ccm-table thead th:last-child {
  border-top-right-radius: 12px;
}
.ccm-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
.ccm-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  margin-top: 10px;
  background: #fff;
 }

/* Base Table */
.ccm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
  border-radius: 12px;
  overflow: auto;
}

/* Header */
.ccm-table thead th {
  background: #ba0e29;
  color: #fff;
  font-weight: 600;
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
}

/* Table body */
.ccm-table tbody td {
  padding: 6px 8px;
  font-size: 11px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: middle;
}

/* Zebra + Hover */
.ccm-table tbody tr:nth-child(even) { background: #fafafa; }
.ccm-table tbody tr:hover { background: #f1f7ff; }

/* Phone link */
.ccm-table a[href^="tel:"] {
  color: #ba0e29;
  font-weight: 600;
  text-decoration: none;
}
.ccm-table a[href^="tel:"]:hover { text-decoration: underline; }

/* Buttons */
.btn {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-interest { background: linear-gradient(90deg, #4caf50, #2e7d32); color: #fff; }
.btn-interest:hover { background: linear-gradient(90deg, #66bb6a, #1b5e20); }

.btn-not-interest { background: linear-gradient(90deg, #ff4081, #c2185b); color: #fff; }
.btn-not-interest:hover { background: linear-gradient(90deg, #ff80ab, #880e4f); }

/* Active States */
.btn-interest.interested-active {
  background-color: #28a745 !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 0.95;
}
.btn-not-interest.not-interested-active {
  background-color: #dc3545 !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 0.95;
}

/* ✅ Mobile friendly (scrollable) */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
  }

  .ccm-table {
    min-width: 900px;  /* 🔥 put this BACK so scrolling activates */
    font-size: 10px;
  }

  .ccm-table th,
  .ccm-table td {
    white-space: nowrap;
    padding: 4px 6px;
  }
}

/* ✅ Desktop column widths */
@media (min-width: 1024px) {
  #ccm-table th:nth-child(1), #ccm-table td:nth-child(1) { width: 4%; }
  #ccm-table th:nth-child(2), #ccm-table td:nth-child(2) { width: 18%; }
  #ccm-table th:nth-child(3), #ccm-table td:nth-child(3) { width: 10%; }
  #ccm-table th:nth-child(4), #ccm-table td:nth-child(4) { width: 20%; }
  #ccm-table th:nth-child(5),
  #ccm-table td:nth-child(5),
  #ccm-table th:nth-child(6),
  #ccm-table td:nth-child(6),
  #ccm-table th:nth-child(7),
  #ccm-table td:nth-child(7) { width: 8%; }
  #ccm-table th:nth-child(8),
  #ccm-table td:nth-child(8) { width: 12%; text-align: center; }
}
