/* =========================================================
   TABLES / TABLE WRAPPERS / TABLE CELLS
========================================================= */

.dashboard-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-table-title {
  color: #839898;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dashboard-table-count {
  color: #839898;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-table-wrap,
.dashboard-client-detail-table-wrap,
.dashboard-notification-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.dashboard-table-wrap.has-border,
.dashboard-client-detail-table-wrap.has-border,
.dashboard-notification-table-wrap.has-border {
  border: 1px solid #D9E6E6;
  border-radius: 8px;
}

.dashboard-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #FFFFFF;
}

.dashboard-table-compact {
  min-width: 100%;
}

.dashboard-table th,
.dashboard-table td {
  padding: 14px 16px;
  color: #434B49;
  font-size: 14px;
  line-height: 1.45;
  vertical-align: middle;
}

.dashboard-table thead th {
  border-bottom: 1px solid #D9E6E6;
  background: #fbfcfd;
  color: #839898;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-align: left;
  text-transform: uppercase;
}

.dashboard-table tbody td {
  border-bottom: 1px solid #edf2f4;
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-table tbody tr:hover {
  background: #fbfefe;
}

.dashboard-table-compact thead th,
.dashboard-table-compact tbody td {
  text-align: center;
}

.dashboard-table-compact thead th:nth-child(3),
.dashboard-table-compact tbody td:nth-child(3) {
  text-align: left;
}

/* Client / person cells */

.dashboard-client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-client-main {
  min-width: 0;
}

.dashboard-client-name {
  color: #434B49;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-client-sub {
  margin-top: 4px;
  color: #839898;
  font-size: 12px;
}

/* Linked clients table */

.dashboard-linked-clients-table {
  min-width: 0;
  table-layout: fixed;
}

.dashboard-linked-clients-table th:last-child,
.dashboard-linked-clients-table td:last-child {
  width: 140px;
  text-align: right;
}

/* Dashboard home upcoming table */

.dashboard-dashboard-upcoming-table {
  min-width: 0;
  table-layout: fixed;
}

.dashboard-dashboard-upcoming-table th,
.dashboard-dashboard-upcoming-table td {
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.dashboard-dashboard-upcoming-table th:nth-child(1),
.dashboard-dashboard-upcoming-table td:nth-child(1) {
  width: 120px;
}

.dashboard-dashboard-upcoming-table th:nth-child(2),
.dashboard-dashboard-upcoming-table td:nth-child(2) {
  width: 90px;
}

.dashboard-dashboard-upcoming-table th:nth-child(3),
.dashboard-dashboard-upcoming-table td:nth-child(3) {
  width: auto;
}

.dashboard-dashboard-upcoming-table th:nth-child(4),
.dashboard-dashboard-upcoming-table td:nth-child(4) {
  width: 140px;
}

.dashboard-dashboard-upcoming-table th:nth-child(5),
.dashboard-dashboard-upcoming-table td:nth-child(5) {
  width: 130px;
}

.dashboard-dashboard-upcoming-table th:nth-child(6),
.dashboard-dashboard-upcoming-table td:nth-child(6) {
  width: 90px;
  text-align: right;
}

/* Client notes table */

table:has(#clientNotesTableBody) {
  min-width: 0;
  table-layout: fixed;
}

table:has(#clientNotesTableBody) th,
table:has(#clientNotesTableBody) td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

table:has(#clientNotesTableBody) thead th:nth-child(1),
#clientNotesTableBody tr td:nth-child(1) {
  width: 140px;
}

table:has(#clientNotesTableBody) thead th:nth-child(2),
#clientNotesTableBody tr td:nth-child(2) {
  width: 180px;
}

table:has(#clientNotesTableBody) thead th:nth-child(3),
#clientNotesTableBody tr td:nth-child(3) {
  width: auto;
}

/* Coach dashboard table compatibility */

.dashboard-client-table,
.dashboard-client-contact-table,
.dashboard-client-notes-table,
.dashboard-client-pack-table,
.dashboard-client-appointment-table,
.dashboard-client-invoice-table {
  background: #FFFFFF;
}

/* Mobile table behaviour */

@media (max-width: 860px) {
  .dashboard-notification-table-wrap,
  .dashboard-client-detail-table-wrap {
    overflow-x: visible;
  }

  .dashboard-notification-table,
  .dashboard-client-table,
  .dashboard-client-contact-table,
  .dashboard-client-notes-table,
  .dashboard-client-pack-table,
  .dashboard-client-appointment-table,
  .dashboard-client-invoice-table {
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-notification-table th,
  .dashboard-notification-table td,
  .dashboard-client-table th,
  .dashboard-client-table td,
  .dashboard-client-contact-table th,
  .dashboard-client-contact-table td,
  .dashboard-client-notes-table th,
  .dashboard-client-notes-table td,
  .dashboard-client-pack-table th,
  .dashboard-client-pack-table td,
  .dashboard-client-appointment-table th,
  .dashboard-client-appointment-table td,
  .dashboard-client-invoice-table th,
  .dashboard-client-invoice-table td {
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
    vertical-align: middle;
  }

  .dashboard-notification-table th,
  .dashboard-notification-table td,
  .dashboard-client-contact-table th,
  .dashboard-client-contact-table td,
  .dashboard-client-notes-table th,
  .dashboard-client-notes-table td,
  .dashboard-client-pack-table th,
  .dashboard-client-pack-table td,
  .dashboard-client-appointment-table th,
  .dashboard-client-appointment-table td,
  .dashboard-client-invoice-table th,
  .dashboard-client-invoice-table td {
    padding: 10px 6px;
  }

  .dashboard-client-table th,
  .dashboard-client-table td {
    padding: 12px 8px;
    font-size: 13px;
  }

  .dashboard-dashboard-upcoming-table th:nth-child(2),
  .dashboard-dashboard-upcoming-table td:nth-child(2),
  .dashboard-dashboard-upcoming-table th:nth-child(4),
  .dashboard-dashboard-upcoming-table td:nth-child(4),
  .dashboard-dashboard-upcoming-table th:nth-child(5),
  .dashboard-dashboard-upcoming-table td:nth-child(5) {
    display: none;
  }

  .dashboard-dashboard-upcoming-table th:nth-child(1),
  .dashboard-dashboard-upcoming-table td:nth-child(1) {
    width: 30%;
  }

  .dashboard-dashboard-upcoming-table th:nth-child(3),
  .dashboard-dashboard-upcoming-table td:nth-child(3) {
    width: 45%;
  }

  .dashboard-dashboard-upcoming-table th:nth-child(6),
  .dashboard-dashboard-upcoming-table td:nth-child(6) {
    width: 25%;
    text-align: right;
  }

  .dashboard-client-table th:nth-child(2),
  .dashboard-client-table td:nth-child(2),
  .dashboard-client-table th:nth-child(3),
  .dashboard-client-table td:nth-child(3),
  .dashboard-client-table th:nth-child(4),
  .dashboard-client-table td:nth-child(4),
  .dashboard-client-table th:nth-child(5),
  .dashboard-client-table td:nth-child(5),
  .dashboard-client-table th:nth-child(6),
  .dashboard-client-table td:nth-child(6) {
    display: none;
  }

  .dashboard-client-table th:nth-child(1),
  .dashboard-client-table td:nth-child(1) {
    width: 70%;
  }

  .dashboard-client-table th:nth-child(7),
  .dashboard-client-table td:nth-child(7) {
    width: 30%;
    text-align: center;
  }

  .dashboard-client-table .dashboard-client-cell {
    gap: 0;
  }

  .dashboard-client-table .dashboard-client-sub {
    display: none;
  }

  .dashboard-client-table .dashboard-link-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  table:has(#clientTable) {
    min-width: 0;
  }

  table:has(#clientTable) thead th:nth-child(2),
  table:has(#clientTable) thead th:nth-child(3),
  table:has(#clientTable) thead th:nth-child(4),
  table:has(#clientTable) thead th:nth-child(5),
  table:has(#clientTable) thead th:nth-child(6),
  #clientTable tr td:nth-child(2),
  #clientTable tr td:nth-child(3),
  #clientTable tr td:nth-child(4),
  #clientTable tr td:nth-child(5),
  #clientTable tr td:nth-child(6) {
    display: none;
  }

  table:has(#clientTable) th:nth-child(1),
  table:has(#clientTable) td:nth-child(1) {
    width: 60%;
  }

  table:has(#clientTable) th:nth-child(7),
  table:has(#clientTable) td:nth-child(7) {
    width: 40%;
    text-align: center;
  }

  table:has(#clientTable) .dashboard-link-btn {
    display: inline-flex;
    justify-content: center;
    min-width: 74px;
  }

  #clientTable .dashboard-client-sub {
    display: none;
  }

  table:has(#clientContactsTableBody) {
    min-width: 0;
  }

  table:has(#clientContactsTableBody) thead th:nth-child(2),
  table:has(#clientContactsTableBody) thead th:nth-child(3),
  table:has(#clientContactsTableBody) thead th:nth-child(4),
  #clientContactsTableBody tr td:nth-child(2),
  #clientContactsTableBody tr td:nth-child(3),
  #clientContactsTableBody tr td:nth-child(4) {
    display: none;
  }

  table:has(#clientContactsTableBody) th:nth-child(1),
  table:has(#clientContactsTableBody) td:nth-child(1) {
    width: 60%;
  }

  table:has(#clientContactsTableBody) th:nth-child(5),
  table:has(#clientContactsTableBody) td:nth-child(5) {
    width: 40%;
    text-align: center;
  }

  table:has(#clientNotesTableBody) thead th:nth-child(2),
  #clientNotesTableBody tr td:nth-child(2) {
    display: none;
  }

  table:has(#clientNotesTableBody) thead th:nth-child(1),
  #clientNotesTableBody tr td:nth-child(1) {
    width: 26%;
  }

  table:has(#clientNotesTableBody) thead th:nth-child(3),
  #clientNotesTableBody tr td:nth-child(3) {
    width: 74%;
  }

  .dashboard-contacts-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-contacts-table th:nth-child(2),
  .dashboard-contacts-table th:nth-child(3),
  .dashboard-contacts-table th:nth-child(4),
  .dashboard-contacts-table th:nth-child(5),
  .dashboard-contacts-table td:nth-child(2),
  .dashboard-contacts-table td:nth-child(3),
  .dashboard-contacts-table td:nth-child(4),
  .dashboard-contacts-table td:nth-child(5) {
    display: none;
  }

  .dashboard-contacts-table th:nth-child(1),
  .dashboard-contacts-table td:nth-child(1) {
    width: 65%;
  }

  .dashboard-contacts-table th:nth-child(6),
  .dashboard-contacts-table td:nth-child(6) {
    width: 35%;
    text-align: right;
  }

  .dashboard-contacts-table .dashboard-client-sub {
    display: none;
  }
}

.dashboard-client-name-link,
.dashboard-contact-name-link {
  color: #00A19E;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-client-name-link:hover,
.dashboard-contact-name-link:hover {
  color: #007274;
  text-decoration: underline;
}

.dashboard-btn-refresh {
  min-height: 44px;
  background: #007274;
  color: #FFFFFF;
}

.dashboard-btn-refresh:hover {
  background: #005f61;
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .dashboard-client-action-col,
  .dashboard-client-action-cell {
    display: none;
  }

  .dashboard-client-type-mobile {
    display: block;
    margin-top: 4px;
    color: #839898;
    font-size: 12px;
    font-weight: 700;
  }
}

@media (min-width: 641px) {
  .dashboard-client-type-mobile {
    display: none;
  }
}

/* =========================================================
   ACTION COLUMN ALIGNMENT / MOBILE CLEANUP
========================================================= */

.dashboard-action-col,
.dashboard-action-cell {
  text-align: center;
}

.dashboard-action-cell .dashboard-link-btn {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
}

.dashboard-note-user-cell {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dashboard-action-col,
  .dashboard-action-cell {
    display: none;
  }

  .dashboard-note-user-cell {
    display: none;
  }
}

.dashboard-contacts-table {
  min-width: 820px;
}

.dashboard-contacts-table th,
.dashboard-contacts-table td {
  vertical-align: middle;
}

.dashboard-contacts-table th:nth-child(1),
.dashboard-contacts-table td:nth-child(1) {
  width: 30%;
}

.dashboard-contacts-table th:nth-child(2),
.dashboard-contacts-table td:nth-child(2) {
  width: 18%;
}

.dashboard-contacts-table th:nth-child(3),
.dashboard-contacts-table td:nth-child(3) {
  width: 22%;
}

.dashboard-contacts-table th:nth-child(4),
.dashboard-contacts-table td:nth-child(4) {
  width: 30%;
}

.dashboard-franchisor-contacts-table {
  min-width: 980px;
}

.dashboard-franchisor-contacts-table th:nth-child(5),
.dashboard-franchisor-contacts-table td:nth-child(5) {
  width: 26%;
}

.dashboard-franchisor-contacts-table th:nth-child(5),
.dashboard-franchisor-contacts-table td:nth-child(5) {
  width: 16%;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.franchisor-show-all-toggle {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .franchisor-contacts-filter-row {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .franchisor-show-all-toggle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .dashboard-contacts-table,
  .dashboard-franchisor-contacts-table {
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-contacts-table th:nth-child(3),
  .dashboard-contacts-table td:nth-child(3),
  .dashboard-contacts-table th:nth-child(4),
  .dashboard-contacts-table td:nth-child(4),
  .dashboard-franchisor-contacts-table th:nth-child(5),
  .dashboard-franchisor-contacts-table td:nth-child(5) {
    display: none;
  }

  .dashboard-contacts-table th:nth-child(1),
  .dashboard-contacts-table td:nth-child(1) {
    width: 65%;
  }

  .dashboard-contacts-table th:nth-child(2),
  .dashboard-contacts-table td:nth-child(2) {
    width: 35%;
  }
}

/* =========================================================
   CONTACT DETAILS TABLES / TABS
========================================================= */

.dashboard-contact-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-contact-linked-client-table,
.dashboard-contact-billing-table,
.dashboard-contact-invoice-table {
  min-width: 980px;
}

.dashboard-contact-linked-client-table .dashboard-action-col,
.dashboard-contact-linked-client-table .dashboard-action-cell,
.dashboard-contact-invoice-table .dashboard-action-col,
.dashboard-contact-invoice-table .dashboard-action-cell {
  text-align: center;
}

.dashboard-contact-linked-client-table .dashboard-link-btn,
.dashboard-contact-invoice-table .dashboard-link-btn {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
}

@media (max-width: 640px) {
  .dashboard-contact-detail-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .dashboard-contact-detail-tabs .dashboard-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .dashboard-contact-linked-client-table {
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-contact-linked-client-table th:nth-child(3),
  .dashboard-contact-linked-client-table td:nth-child(3),
  .dashboard-contact-linked-client-table th:nth-child(4),
  .dashboard-contact-linked-client-table td:nth-child(4),
  .dashboard-contact-linked-client-table th:nth-child(5),
  .dashboard-contact-linked-client-table td:nth-child(5),
  .dashboard-contact-linked-client-table th:nth-child(6),
  .dashboard-contact-linked-client-table td:nth-child(6),
  .dashboard-contact-linked-client-table th:nth-child(7),
  .dashboard-contact-linked-client-table td:nth-child(7),
  .dashboard-contact-linked-client-table th:nth-child(8),
  .dashboard-contact-linked-client-table td:nth-child(8) {
    display: none;
  }

  .dashboard-contact-linked-client-table th:nth-child(1),
  .dashboard-contact-linked-client-table td:nth-child(1) {
    width: 68%;
  }

  .dashboard-contact-linked-client-table th:nth-child(2),
  .dashboard-contact-linked-client-table td:nth-child(2) {
    width: 32%;
  }
}

/* Client list mobile: client + type/status only, no action button */
@media (max-width: 640px) {
  .dashboard-client-table th:nth-child(2),
  .dashboard-client-table td:nth-child(2),
  .dashboard-client-table th:nth-child(3),
  .dashboard-client-table td:nth-child(3),
  .dashboard-client-table th:nth-child(4),
  .dashboard-client-table td:nth-child(4),
  .dashboard-client-table th:nth-child(5),
  .dashboard-client-table td:nth-child(5),
  .dashboard-client-table th:nth-child(6),
  .dashboard-client-table td:nth-child(6),
  .dashboard-client-table .dashboard-action-col,
  .dashboard-client-table .dashboard-action-cell {
    display: none !important;
  }

  .dashboard-client-table th:nth-child(1),
  .dashboard-client-table td:nth-child(1) {
    width: 100% !important;
  }

  .dashboard-client-table td:nth-child(1) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .dashboard-client-type-mobile {
    display: inline-flex !important;
    margin-top: 0;
    color: #839898;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
  }
}

/* Action column alignment desktop */
.dashboard-action-col,
.dashboard-action-cell {
  width: 110px;
  text-align: center !important;
}

.dashboard-action-cell .dashboard-link-btn {
  margin: 0 auto;
}

/* Date/time display */
.dashboard-table-date {
  font-weight: 700;
  color: #434B49;
}

.dashboard-table-time {
  margin-top: 3px;
  color: #839898;
  font-size: 12px;
}

/* Billing contact mobile: only contact + mobile */
@media (max-width: 640px) {
  .dashboard-billing-contact-table {
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-billing-contact-table th:nth-child(3),
  .dashboard-billing-contact-table td:nth-child(3),
  .dashboard-billing-contact-table th:nth-child(4),
  .dashboard-billing-contact-table td:nth-child(4),
  .dashboard-billing-contact-table .dashboard-action-col,
  .dashboard-billing-contact-table .dashboard-action-cell {
    display: none !important;
  }

  .dashboard-billing-contact-table th:nth-child(1),
  .dashboard-billing-contact-table td:nth-child(1) {
    width: 65%;
  }

  .dashboard-billing-contact-table th:nth-child(2),
  .dashboard-billing-contact-table td:nth-child(2) {
    width: 35%;
  }
}

/* Linked contacts mobile: only contact + mobile */
@media (max-width: 640px) {
  .dashboard-linked-contacts-table {
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-linked-contacts-table th:nth-child(3),
  .dashboard-linked-contacts-table td:nth-child(3),
  .dashboard-linked-contacts-table th:nth-child(4),
  .dashboard-linked-contacts-table td:nth-child(4),
  .dashboard-linked-contacts-table .dashboard-action-col,
  .dashboard-linked-contacts-table .dashboard-action-cell {
    display: none !important;
  }

  .dashboard-linked-contacts-table th:nth-child(1),
  .dashboard-linked-contacts-table td:nth-child(1) {
    width: 65%;
  }

  .dashboard-linked-contacts-table th:nth-child(2),
  .dashboard-linked-contacts-table td:nth-child(2) {
    width: 35%;
  }
}

/* Session pack summary mobile: date, booked, used, available, to add */
@media (max-width: 640px) {
  .dashboard-client-pack-table th:nth-child(2),
  .dashboard-client-pack-table td:nth-child(2),
  .dashboard-client-pack-table th:nth-child(3),
  .dashboard-client-pack-table td:nth-child(3),
  .dashboard-client-pack-table th:nth-child(4),
  .dashboard-client-pack-table td:nth-child(4),
  .dashboard-client-pack-table th:nth-child(9),
  .dashboard-client-pack-table td:nth-child(9) {
    display: none !important;
  }

  .dashboard-client-pack-table th:nth-child(1),
  .dashboard-client-pack-table td:nth-child(1) {
    width: 22%;
  }

  .dashboard-client-pack-table th:nth-child(5),
  .dashboard-client-pack-table td:nth-child(5),
  .dashboard-client-pack-table th:nth-child(6),
  .dashboard-client-pack-table td:nth-child(6),
  .dashboard-client-pack-table th:nth-child(7),
  .dashboard-client-pack-table td:nth-child(7),
  .dashboard-client-pack-table th:nth-child(8),
  .dashboard-client-pack-table td:nth-child(8) {
    width: 19.5%;
    text-align: center;
  }
}

/* Appointments mobile: no action, no cancelled */
@media (max-width: 640px) {
  .dashboard-client-appointment-row[data-appointment-status*="cancel"] {
    display: none !important;
  }

  .dashboard-client-appointment-table .dashboard-action-col,
  .dashboard-client-appointment-table .dashboard-action-cell {
    display: none !important;
  }

  .dashboard-client-appointment-table th:nth-child(1),
  .dashboard-client-appointment-table td:nth-child(1) {
    width: 38%;
  }

  .dashboard-client-appointment-table th:nth-child(2),
  .dashboard-client-appointment-table td:nth-child(2) {
    width: 34%;
  }

  .dashboard-client-appointment-table th:nth-child(3),
  .dashboard-client-appointment-table td:nth-child(3) {
    width: 28%;
  }

  .dashboard-client-appointment-table th:nth-child(4),
  .dashboard-client-appointment-table td:nth-child(4) {
    display: none !important;
  }
}

/* Invoices mobile: hide due date and action */
@media (max-width: 640px) {
  .dashboard-client-invoice-table th:nth-child(3),
  .dashboard-client-invoice-table td:nth-child(3),
  .dashboard-client-invoice-table .dashboard-action-col,
  .dashboard-client-invoice-table .dashboard-action-cell {
    display: none !important;
  }
}

/* Appointment location: desktop only */
.dashboard-appointment-location-col,
.dashboard-appointment-location-cell {
  display: table-cell;
}

@media (max-width: 640px) {
  .dashboard-appointment-location-col,
  .dashboard-appointment-location-cell {
    display: none !important;
  }
}

/* Client invoice table mobile: compact columns */
@media (max-width: 640px) {
  .dashboard-client-invoice-table {
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .dashboard-client-invoice-table th,
  .dashboard-client-invoice-table td {
    padding: 8px 5px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .dashboard-client-invoice-table th:nth-child(1),
  .dashboard-client-invoice-table td:nth-child(1) {
    width: 24% !important;
  }

  .dashboard-client-invoice-table th:nth-child(2),
  .dashboard-client-invoice-table td:nth-child(2) {
    width: 20% !important;
  }

  .dashboard-client-invoice-table th:nth-child(4),
  .dashboard-client-invoice-table td:nth-child(4) {
    width: 20% !important;
  }

  .dashboard-client-invoice-table th:nth-child(5),
  .dashboard-client-invoice-table td:nth-child(5),
  .dashboard-client-invoice-table th:nth-child(6),
  .dashboard-client-invoice-table td:nth-child(6) {
    width: 18% !important;
    text-align: right !important;
  }

  .dashboard-client-invoice-table th:nth-child(3),
  .dashboard-client-invoice-table td:nth-child(3),
  .dashboard-client-invoice-table .dashboard-action-col,
  .dashboard-client-invoice-table .dashboard-action-cell {
    display: none !important;
  }
}

/* =========================================================
   PROFILE LEGAL TABLES
========================================================= */

.profile-dbs-table,
.profile-dbs-update-table,
.profile-insurance-table,
.profile-indemnity-table {
  min-width: 860px;
  table-layout: fixed;
  width: 100%;
}

/* DBS + DBS Update: no insurer, wider number */
.profile-dbs-table th:nth-child(1),
.profile-dbs-table td:nth-child(1),
.profile-dbs-update-table th:nth-child(1),
.profile-dbs-update-table td:nth-child(1) {
  width: 14%;
}

.profile-dbs-table th:nth-child(2),
.profile-dbs-table td:nth-child(2),
.profile-dbs-update-table th:nth-child(2),
.profile-dbs-update-table td:nth-child(2) {
  width: 17%;
}

.profile-dbs-table th:nth-child(3),
.profile-dbs-table td:nth-child(3),
.profile-dbs-update-table th:nth-child(3),
.profile-dbs-update-table td:nth-child(3) {
  width: 17%;
}

.profile-dbs-table th:nth-child(4),
.profile-dbs-table td:nth-child(4),
.profile-dbs-update-table th:nth-child(4),
.profile-dbs-update-table td:nth-child(4) {
  width: 34%;
}

.profile-dbs-table th:nth-child(5),
.profile-dbs-table td:nth-child(5),
.profile-dbs-update-table th:nth-child(5),
.profile-dbs-update-table td:nth-child(5) {
  width: 18%;
}

/* Insurance + Indemnity: insurer included */
.profile-insurance-table th:nth-child(1),
.profile-insurance-table td:nth-child(1),
.profile-indemnity-table th:nth-child(1),
.profile-indemnity-table td:nth-child(1) {
  width: 12%;
}

.profile-insurance-table th:nth-child(2),
.profile-insurance-table td:nth-child(2),
.profile-indemnity-table th:nth-child(2),
.profile-indemnity-table td:nth-child(2) {
  width: 16%;
}

.profile-insurance-table th:nth-child(3),
.profile-insurance-table td:nth-child(3),
.profile-indemnity-table th:nth-child(3),
.profile-indemnity-table td:nth-child(3) {
  width: 16%;
}

.profile-insurance-table th:nth-child(4),
.profile-insurance-table td:nth-child(4),
.profile-indemnity-table th:nth-child(4),
.profile-indemnity-table td:nth-child(4) {
  width: 22%;
}

.profile-insurance-table th:nth-child(5),
.profile-insurance-table td:nth-child(5),
.profile-indemnity-table th:nth-child(5),
.profile-indemnity-table td:nth-child(5) {
  width: 18%;
}

.profile-insurance-table th:nth-child(6),
.profile-insurance-table td:nth-child(6),
.profile-indemnity-table th:nth-child(6),
.profile-indemnity-table td:nth-child(6) {
  width: 16%;
}
