/* RecoPad admin tables — match Service Enquiries list */
:root {
  --rp-tbl-pad-x: 14px;
  --rp-tbl-pad-y: 14px;
}

/* Page titles like enquiry page-head */
body.recopad-sidebar .page-title-box {
  padding: 4px 0 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
body.recopad-sidebar .page-title-box h4,
body.recopad-sidebar .page-title-box .font-size-18 {
  margin: 0;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}
body.recopad-sidebar .page-title-box .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 12px;
}
body.recopad-sidebar .page-title-box .breadcrumb-item,
body.recopad-sidebar .page-title-box .breadcrumb-item a {
  color: var(--ink-400);
  font-weight: 500;
}
body.recopad-sidebar .page-title-box .breadcrumb-item.active {
  color: var(--ink-600);
}
body.recopad-sidebar .page-title-box .breadcrumb-item + .breadcrumb-item::before {
  color: var(--ink-300, #C4BFBA);
}

/* Card around lists */
body.recopad-sidebar .page-content .card {
  background: #fff;
  border: 1px solid var(--brd);
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}
body.recopad-sidebar .page-content .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--brd);
  padding: 16px 18px;
}
body.recopad-sidebar .page-content .card-header .card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
body.recopad-sidebar .page-content .card-body {
  padding: 16px 18px 18px;
}
body.recopad-sidebar .page-content .card-header .btn,
body.recopad-sidebar .page-content .card-header .btn-primary,
body.recopad-sidebar .page-content .card-header .btn-danger {
  float: none !important;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.recopad-sidebar .page-content .card-header .form-select {
  height: 36px;
  font-size: 12.5px;
  border-radius: 8px;
  border-color: var(--brd);
  color: var(--fg);
}

/* DataTables length / search */
body.recopad-sidebar .dataTables_wrapper {
  color: var(--ink-600);
  font-size: 12.5px;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_length,
body.recopad-sidebar .dataTables_wrapper .dataTables_filter,
body.recopad-sidebar .dataTables_wrapper .dataTables_info {
  color: var(--ink-400);
  font-size: 12px;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_length label,
body.recopad-sidebar .dataTables_wrapper .dataTables_filter label {
  font-weight: 500;
  margin-bottom: 10px;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_length select,
body.recopad-sidebar .dataTables_wrapper .dataTables_filter input {
  height: 34px;
  border: 1px solid var(--brd) !important;
  border-radius: 8px !important;
  color: var(--fg);
  background: #fff;
  font-size: 12.5px;
  box-shadow: none !important;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_length select {
  padding: 0 28px 0 10px;
  min-width: 64px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2392929e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_filter input {
  padding: 0 12px 0 34px;
  min-width: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A8A29E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: 11px 50%;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_filter input:focus,
body.recopad-sidebar .dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--pri) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(137, 24, 17, 0.08) !important;
}

/* Table — enquiry list look: uppercase grey headers, horizontal rules only */
body.recopad-sidebar .table {
  color: var(--fg);
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100% !important;
}
body.recopad-sidebar .table-bordered,
body.recopad-sidebar .table-bordered td,
body.recopad-sidebar .table-bordered th,
body.recopad-sidebar .table-bordered > :not(caption) > * > * {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--brd) !important;
}
body.recopad-sidebar table.table,
body.recopad-sidebar table.dataTable {
  border: 1px solid var(--brd) !important;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
body.recopad-sidebar .table thead th,
body.recopad-sidebar table.dataTable thead th,
body.recopad-sidebar table.dataTable thead td {
  background: var(--ink-50) !important;
  color: var(--ink-400) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--brd) !important;
  border-top: none !important;
  padding: 11px var(--rp-tbl-pad-x) !important;
  vertical-align: middle;
  box-shadow: none !important;
}
body.recopad-sidebar .table tbody td,
body.recopad-sidebar table.dataTable tbody td {
  padding: var(--rp-tbl-pad-y) var(--rp-tbl-pad-x) !important;
  font-size: 12.5px;
  color: var(--fg);
  vertical-align: middle;
  border-top: none !important;
  border-bottom: 1px solid var(--brd) !important;
  background: #fff !important;
}
body.recopad-sidebar .table tbody tr:last-child td,
body.recopad-sidebar table.dataTable tbody tr:last-child td {
  border-bottom: none !important;
}
body.recopad-sidebar .table tbody tr:hover td,
body.recopad-sidebar table.dataTable tbody tr:hover td {
  background: var(--ink-50) !important;
}
body.recopad-sidebar .table-striped tbody tr:nth-of-type(odd) td {
  background: #fff !important;
}

/* Primary name = bold dark like enquiry gym names; actions stay RecoPad red */
body.recopad-sidebar .table tbody td a,
body.recopad-sidebar .card-body a:not(.btn) {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
body.recopad-sidebar .table tbody td a:hover,
body.recopad-sidebar .card-body a:not(.btn):hover {
  color: var(--pri);
}
body.recopad-sidebar .table tbody td:last-child a,
body.recopad-sidebar .table tbody td .text-danger,
body.recopad-sidebar .table tbody td .text-primary {
  color: var(--pri) !important;
  font-weight: 700;
  font-size: 12px;
}

/* Mute DataTables sort arrows */
body.recopad-sidebar table.dataTable thead .sorting:before,
body.recopad-sidebar table.dataTable thead .sorting:after,
body.recopad-sidebar table.dataTable thead .sorting_asc:before,
body.recopad-sidebar table.dataTable thead .sorting_asc:after,
body.recopad-sidebar table.dataTable thead .sorting_desc:before,
body.recopad-sidebar table.dataTable thead .sorting_desc:after,
body.recopad-sidebar table.dataTable thead .sorting_asc_disabled:before,
body.recopad-sidebar table.dataTable thead .sorting_asc_disabled:after,
body.recopad-sidebar table.dataTable thead .sorting_desc_disabled:before,
body.recopad-sidebar table.dataTable thead .sorting_desc_disabled:after {
  opacity: 0.28;
  color: var(--ink-400);
}

/* Responsive “+” — keep indent so it does not cover the name */
body.recopad-sidebar table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td.dtr-control,
body.recopad-sidebar table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th.dtr-control,
body.recopad-sidebar table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child,
body.recopad-sidebar table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th:first-child {
  position: relative;
  padding-left: 40px !important;
}

body.recopad-sidebar table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td.dtr-control:before,
body.recopad-sidebar table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th.dtr-control:before,
body.recopad-sidebar table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child:before,
body.recopad-sidebar table.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > th:first-child:before {
  top: 50%;
  left: 12px;
  height: 16px;
  width: 16px;
  margin-top: -8px;
  line-height: 16px;
  display: block;
  position: absolute;
  border: 1px solid var(--brd);
  background: #fff;
  box-shadow: none;
  color: var(--pri);
  font-weight: 700;
  border-radius: 4px;
  box-sizing: content-box;
  text-align: center;
}

/* Pagination like enquiry pg-btn */
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate {
  padding-top: 12px;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate .pagination {
  gap: 4px;
  margin: 0;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate .paginate_button,
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate .page-link,
body.recopad-sidebar .page-item .page-link {
  min-width: 32px;
  height: 32px;
  padding: 0 8px !important;
  margin: 0 !important;
  border: 1px solid var(--brd) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--ink-600) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 30px !important;
  box-shadow: none !important;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
body.recopad-sidebar .page-link:hover {
  background: var(--ink-100) !important;
  color: var(--fg) !important;
  border-color: var(--brd) !important;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
body.recopad-sidebar .page-item.active .page-link {
  background: var(--pri) !important;
  border-color: var(--pri) !important;
  color: #fff !important;
}
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body.recopad-sidebar .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
body.recopad-sidebar .page-item.disabled .page-link {
  opacity: 0.45;
  color: var(--ink-400) !important;
  background: #fff !important;
}

body.recopad-sidebar .dataTables_wrapper .dataTables_info {
  padding-top: 14px;
  color: var(--ink-400);
}

/* Processing overlay */
body.recopad-sidebar .dataTables_processing {
  background: rgba(255,255,255,0.9) !important;
  color: var(--fg);
  border: 1px solid var(--brd);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
