/* Table wrapper for horizontal scroll on mobile */
.cml-wrap .dataTables_wrapper {
  width: 100%;
}
table.cml-table { width: 100%; }
table.cml-table td,
table.cml-table th {
  white-space: nowrap;
}
td.cml-phone { min-width: 130px; }
td.cml-email a,
td.cml-phone a {
  color: #0064a4;
  text-decoration: none;
  transition: color 0.2s;
}
td.cml-email a:hover,
td.cml-phone a:hover {
  color: #333333;
}
td.cml-details-control a { text-decoration: none; }
.cml-caret { font-size: 10px; margin-left: 4px; display: inline-block; transition: transform 0.2s; }
tr.shown .cml-caret { transform: rotate(180deg); }
.cml-child { padding: 8px 12px; }
.cml-child .cml-contact-info {
  text-decoration: none;
  color: inherit;
}
.cml-child .cml-contact-info a {
  color: #0064a4;
  text-decoration: none;
  transition: color 0.2s;
}
.cml-child .cml-contact-info a:hover {
  color: #333333;
}
.cml-child .cml-chain { margin: 0; padding-left: 18px; }
.cml-child .cml-chain li { margin: 4px 0; }

/* Search box styling */
.cml-wrap .dataTables_filter {
  float: left;
  text-align: left;
  margin-top: 40px;
  margin-bottom: 30px;
}
.cml-wrap .dataTables_filter label {
  font-size: 0;
}
.cml-wrap .dataTables_filter input[type="search"] {
  width: 350px;
  max-width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cml-wrap .dataTables_filter input[type="search"]:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}
.cml-wrap .dataTables_filter input[type="search"]::placeholder {
  color: #999;
}

/* "or VIEW COMPLETE LIST" styling */
.cml-or-view-all {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  font-size: 14px;
  color: #666;
}
.cml-view-all-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-left: 8px;
  margin-bottom: 12px !important;
  font-family: var(--header-font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-blue);
  background: #fff;
  border: 2px solid var(--color-coral);
  border-radius: 14px;
  transition: all 0.5s;
}
.cml-view-all-btn:hover {
  color: var(--color-blue);
  text-decoration: none;
}
.cml-view-all-btn:focus {
  outline: none;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .cml-wrap .dataTables_filter {
    float: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .cml-wrap .dataTables_filter label {
    width: 100%;
  }
  .cml-wrap .dataTables_filter input[type="search"] {
    width: 98%;
    box-sizing: border-box;
  }
  .cml-or-view-all {
    display: block;
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
    width: 100%;
  }
  .cml-view-all-btn {
    display: block;
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
  /* Table horizontal scroll wrapper */
  .cml-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.cml-table {
    min-width: 600px;
  }
  /* Smaller rows on mobile */
  table.cml-table td,
  table.cml-table th {
    padding: 6px 8px;
    font-size: 13px;
  }
  table.cml-table td.cml-details-control {
    padding: 6px 4px;
  }
  .cml-child {
    padding: 6px 8px;
    font-size: 12px !important;
  }
  .cml-child .cml-contact-info {
    font-size: 11px !important;
  }
}

/* Search box - blue border for prominence + accessible text colors */
.cml-wrap .dataTables_filter input[type="search"] {
  border: 2px solid #0064a4;
  border-radius: 4px;
  color: #333333;
  background: #fff;
}

.cml-wrap .dataTables_filter input[type="search"]::placeholder {
  color: #555555;
}