.complaintTable {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  width: 100% !important;
  table-layout: fixed;
  min-width: 100%;
}
.table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.complaintTable thead {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
  font-size: 1.05rem;
  border: none;
}


.complaintTable th,
.complaintTable td {
  vertical-align: middle;
  border: none;
  padding: 0.80rem 1rem;
  font-size: 0.88rem;
}

/* Specific column widths for department complaint tables */
#pendingComplaintsTable th:nth-child(1), #pendingComplaintsTable td:nth-child(1),
#resolvedComplaintsTable th:nth-child(1), #resolvedComplaintsTable td:nth-child(1) {
  width: 5%; /* Sr No */
}

#pendingComplaintsTable th:nth-child(2), #pendingComplaintsTable td:nth-child(2),
#resolvedComplaintsTable th:nth-child(2), #resolvedComplaintsTable td:nth-child(2) {
  width: 10%; /* Ref ID */
}

#pendingComplaintsTable th:nth-child(3), #pendingComplaintsTable td:nth-child(3),
#resolvedComplaintsTable th:nth-child(3), #resolvedComplaintsTable td:nth-child(3) {
  width: 15%; /* User */
}

#pendingComplaintsTable th:nth-child(4), #pendingComplaintsTable td:nth-child(4),
#resolvedComplaintsTable th:nth-child(4), #resolvedComplaintsTable td:nth-child(4) {
  width: 25%; /* Complaint */
  word-wrap: break-word;
  white-space: normal;
  max-height: 60px;
  overflow: hidden;
}

#pendingComplaintsTable th:nth-child(5), #pendingComplaintsTable td:nth-child(5),
#resolvedComplaintsTable th:nth-child(5), #resolvedComplaintsTable td:nth-child(5) {
  width: 20%; /* Location */
  word-wrap: break-word;
  white-space: normal;
  max-height: 60px;
  overflow: hidden;
}

#pendingComplaintsTable th:nth-child(6), #pendingComplaintsTable td:nth-child(6),
#resolvedComplaintsTable th:nth-child(6), #resolvedComplaintsTable td:nth-child(6) {
  width: 10%; /* Forwarded Date */
}

#resolvedComplaintsTable th:nth-child(7), #resolvedComplaintsTable td:nth-child(7) {
  width: 10%; /* Resolved Date */
}

#pendingComplaintsTable th:nth-child(7), #pendingComplaintsTable td:nth-child(7),
#resolvedComplaintsTable th:nth-child(8), #resolvedComplaintsTable td:nth-child(8) {
  width: 8%; /* Status */
}

#pendingComplaintsTable th:nth-child(8), #pendingComplaintsTable td:nth-child(8),
#resolvedComplaintsTable th:nth-child(9), #resolvedComplaintsTable td:nth-child(9) {
  width: 12%; /* Actions */
}


.complaintTable tbody tr {
  transition: background 0.18s;
}


.complaintTabletbody tr:hover {
  background: #fff6f0;
}


.complaintTable .btn {
  border-radius: 20px;
  font-size: 0.95rem;
  padding: 0.35rem 1.1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.complaintTable .btn-warning {
  background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
  color: #333;
  border: none;
}

.complaintTable .btn-warning:hover {
  background: linear-gradient(90deg, #ffd200 0%, #f7971e 100%);
  color: #111;
}

.complaintTable .btn-success {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  color: #222;
  border: none;
}

.complaintTable .btn-success:hover {
  background: linear-gradient(90deg, #38f9d7 0%, #43e97b 100%);
  color: #111;
}

.complaintTable .btn-danger {
  background: linear-gradient(90deg, #fd3a69 0%, #ff7e5f 100%);
  color: #fff;
  border: none;
}

.complaintTable .btn-danger:hover {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
}
#dt-length-0{
    margin-right: 10px;
    border-radius: 7px;
    padding: 5px;
    
}
#dt-search-0{
border-radius: 10px;    
}
#dt-search-0:focus{
background-color: white;
}
/* Recent resolved table */
#recentResolvedTable{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
   font-family: 'Segoe UI', sans-serif;
  font-size: 0.88rem;
}

#recentResolvedTable thead {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
  font-size: 1.05rem;
  border: none;
}

#recentResolvedTable th, #recentResolvedTable td {
  vertical-align: middle;
  border: none;
  padding: 0.80rem 1rem;
  font-size: 0.88rem;
}

#recentResolvedTable tbody tr {
  transition: background 0.18s;
}

#recentResolvedTable tbody tr:hover {
  background: #fff6f0;
}

  /* Modern Department Table Theme (matches complaints.php) */
#departmentTable,
#forwardedComplaintsTable {
  background: #fff;
  border-radius: 16px ;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  border-collapse: separate; /* Ensures border-radius works on table */
  border-spacing: 0;
}

#departmentTable thead,
#forwardedComplaintsTable thead {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
  font-size: 1.05rem;
  border: none;
}

#departmentTable th, #departmentTable td,
#forwardedComplaintsTable th, #forwardedComplaintsTable td {
  vertical-align: middle;
  border: none;
  padding: 0.80rem 1rem;
  font-size: 0.88rem;
}

#departmentTable tbody tr:hover,
#forwardedComplaintsTable tbody tr:hover {
  background: #fff6f0;
}


/* Feedback Table Custom Styles */
#feedbackTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 1rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.88rem;
}

#feedbackTable thead.table-dark th {
  background: #212529;
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.80rem 1rem;
  font-size: 1.05rem;
}

#feedbackTable tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background 0.18s;
}

#feedbackTable tbody tr:hover {
  background: #fff6f0;
}

#feedbackTable td, #feedbackTable th {
  padding: 0.80rem 1rem;
  vertical-align: middle;
  border: none;
  font-size: 0.88rem;
}

#feedbackTable td {
  color: #222;
}

#feedbackTable .phone-col, 
#feedbackTable .feedback-col {
  word-break: break-word;
  max-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .complaintTable th, .complaintTable td {
    font-size: 0.92rem;
    padding: 0.5rem 0.5rem;
  }
   #departmentTable th, #departmentTable td {
    font-size: 0.92rem;
    padding: 0.5rem 0.5rem;
  }
  #feedbackTable {
    min-width: 0;
    font-size: 0.85rem;
  }
  #feedbackTable th, #feedbackTable td {
    padding: 0.4rem 0.4rem;
  }
}

/* Category Table Styles */
#categoryTable {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  border-collapse: separate;
  border-spacing: 0;
}

#categoryTable thead {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
  font-size: 1.05rem;
  border: none;
}

#categoryTable th, #categoryTable td {
  vertical-align: middle;
  border: none;
  padding: 0.80rem 1rem;
  font-size: 0.88rem;
}

#categoryTable tbody tr {
  transition: background 0.18s;
}

#categoryTable tbody tr:hover {
  background: #fff6f0;
}

#categoryTable .btn {
  border-radius: 20px;
  font-size: 0.95rem;
  padding: 0.35rem 1.1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

#categoryTable .btn-warning {
  background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
  color: #333;
  border: none;
}

#categoryTable .btn-warning:hover {
  background: linear-gradient(90deg, #ffd200 0%, #f7971e 100%);
  color: #111;
}

#categoryTable .btn-danger {
  background: linear-gradient(90deg, #fd3a69 0%, #ff7e5f 100%);
  color: #fff;
  border: none;
}

#categoryTable .btn-danger:hover {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
}

/* Responsive for category table */
@media (max-width: 768px) {
  #categoryTable th, #categoryTable td {
    font-size: 0.92rem;
    padding: 0.5rem 0.5rem;
  }
}

body {
  overflow-x: hidden;
}

/* Optional: Remove background and border from .table-responsive */
.table-responsive {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Custom styling for DataTables pagination */
.dataTables_paginate {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Feedback Table Styles - scoped to .feedback-table-container and #feedbackTable */

.feedback-table-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

#feedbackTable .phone-col, 
#feedbackTable .feedback-col {
    word-break: break-word;
    max-width: 200px;
}

/* DataTables pagination styling for feedback table only */
.feedback-table-container .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 2px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #007bff !important;
    cursor: pointer;
    border-radius: 0.25rem;
}

.feedback-table-container .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3 !important;
}

.feedback-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff !important;
}

.feedback-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6c757d !important;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #dee2e6;
}

.feedback-table-container .dataTables_wrapper .dataTables_length select,
.feedback-table-container .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.feedback-table-container .dataTables_wrapper .dataTables_info {
    padding-top: 0.5rem;
}
.table-responsive.category-table-wrapper {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  padding: 0;
}

/* Add margin to category table wrapper */
.category-table-wrapper {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-left: 2rem;
  margin-right: 2rem;
  margin-bottom: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .category-table-wrapper {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}#departmentTable,
#forwardedComplaintsTable,#opinionTable {
  background: #fff;
  border-radius: 16px ;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  border-collapse: separate; /* Ensures border-radius works on table */
  border-spacing: 0;
}

#departmentTable thead,
#forwardedComplaintsTable thead,#opinionTable thead {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
  font-size: 1.05rem;
  border: none;
}

#departmentTable th, #departmentTable td,
#forwardedComplaintsTable th, #forwardedComplaintsTable td ,#opinionTable th, #opinionTable td{
  vertical-align: middle;
  border: none;
  padding: 0.80rem 1rem;
  font-size: 0.88rem;
}

#departmentTable tbody tr:hover,
#forwardedComplaintsTable tbody tr:hover ,#opinionTable tbody tr:hover{
  background: #fff6f0;
}


/* Feedback Table Custom Styles */
#feedbackTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 1rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.88rem;
}

#feedbackTable thead.table-dark th {
  background: #212529;
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.80rem 1rem;
  font-size: 1.05rem;
}

#feedbackTable tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background 0.18s;
}

#feedbackTable tbody tr:hover {
  background: #fff6f0;
}

#feedbackTable td, #feedbackTable th {
  padding: 0.80rem 1rem;
  vertical-align: middle;
  border: none;
  font-size: 0.88rem;
}

#feedbackTable td {
  color: #222;
}

#feedbackTable .phone-col, 
#feedbackTable .feedback-col {
  word-break: break-word;
  max-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .complaintTable th, .complaintTable td {
    font-size: 0.92rem;
    padding: 0.5rem 0.5rem;
  }
   #departmentTable th, #departmentTable td {
    font-size: 0.92rem;
    padding: 0.5rem 0.5rem;
  }
  #feedbackTable {
    min-width: 0;
    font-size: 0.85rem;
  }
  #feedbackTable th, #feedbackTable td {
    padding: 0.4rem 0.4rem;
  }
}

/* Category Table Styles */
#categoryTable {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  border-collapse: separate;
  border-spacing: 0;
}

#categoryTable thead {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
  font-size: 1.05rem;
  border: none;
}

#categoryTable th, #categoryTable td {
  vertical-align: middle;
  border: none;
  padding: 0.80rem 1rem;
  font-size: 0.88rem;
}

#categoryTable tbody tr {
  transition: background 0.18s;
}

#categoryTable tbody tr:hover {
  background: #fff6f0;
}

#categoryTable .btn {
  border-radius: 20px;
  font-size: 0.95rem;
  padding: 0.35rem 1.1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

#categoryTable .btn-warning {
  background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
  color: #333;
  border: none;
}

#categoryTable .btn-warning:hover {
  background: linear-gradient(90deg, #ffd200 0%, #f7971e 100%);
  color: #111;
}

#categoryTable .btn-danger {
  background: linear-gradient(90deg, #fd3a69 0%, #ff7e5f 100%);
  color: #fff;
  border: none;
}

#categoryTable .btn-danger:hover {
  background: linear-gradient(90deg, #ff7e5f 0%, #fd3a69 100%);
  color: #fff;
}

/* Responsive for category table */
@media (max-width: 768px) {
  #categoryTable th, #categoryTable td {
    font-size: 0.92rem;
    padding: 0.5rem 0.5rem;
  }
}

body {
  overflow-x: hidden;
}

/* Optional: Remove background and border from .table-responsive */
.table-responsive {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Custom styling for DataTables pagination */
.dataTables_paginate {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Feedback Table Styles - scoped to .feedback-table-container and #feedbackTable */

.feedback-table-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

#feedbackTable .phone-col, 
#feedbackTable .feedback-col {
    word-break: break-word;
    max-width: 200px;
}

/* DataTables pagination styling for feedback table only */
.feedback-table-container .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 2px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #007bff !important;
    cursor: pointer;
    border-radius: 0.25rem;
}

.feedback-table-container .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3 !important;
}

.feedback-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff !important;
}

.feedback-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #6c757d !important;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #dee2e6;
}

.feedback-table-container .dataTables_wrapper .dataTables_length select,
.feedback-table-container .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.feedback-table-container .dataTables_wrapper .dataTables_info {
    padding-top: 0.5rem;
}
.table-responsive.category-table-wrapper {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-bottom: 0;
  padding: 0;
}

/* Add margin to category table wrapper */
.category-table-wrapper {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(241, 89, 34, 0.08);
  margin-left: 2rem;
  margin-right: 2rem;
  margin-bottom: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .category-table-wrapper {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}