.tf-r29-time-page {
  min-width: 0;
}

.tf-r29-time-page > .pagehead {
  margin-bottom: 12px;
}

.tf-r29-time-toolbar {
  min-width: 0;
  align-items: center;
}

.tf-r29-time-toolbar .btn,
.tf-r29-time-toolbar select {
  min-height: 44px;
}

.tf-r29-time-toolbar select {
  min-width: 245px;
  max-width: 100%;
}

.tf-r29-time-page > .tf728-time-search-panel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 18px;
  overflow: hidden;
}

.tf-r29-time-page .tf728-time-search-main,
.tf-r29-time-page .tf728-time-search-row,
.tf-r29-time-page .tf728-time-filter-grid,
.tf-r29-time-page .tf728-time-custom-dates {
  min-width: 0;
}

.tf-r29-time-page .tf728-time-search-row {
  grid-template-columns: minmax(0, 1fr) minmax(108px, auto) minmax(92px, auto);
}

.tf-r29-time-page .tf728-time-search-row input,
.tf-r29-time-page .tf728-time-filter-grid select,
.tf-r29-time-page .tf728-time-custom-dates input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tf-r29-time-page .tf728-time-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "date customer job"
    "custom custom custom"
    "staff approval billing";
  align-items: end;
}

.tf-r29-filter-date { grid-area: date; }
.tf-r29-filter-customer { grid-area: customer; }
.tf-r29-filter-job { grid-area: job; }
.tf-r29-filter-staff { grid-area: staff; }
.tf-r29-filter-approval { grid-area: approval; }
.tf-r29-filter-billing { grid-area: billing; }

.tf-r29-time-page .tf728-time-filter-grid label,
.tf-r29-time-page .tf728-time-custom-dates label {
  min-width: 0;
}

.tf-r29-time-page .tf728-time-custom-dates {
  grid-area: custom;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d8e6e0;
}

.tf-r29-time-page .tf728-time-custom-dates[hidden] {
  display: none !important;
}

.tf-r29-time-page .tf728-time-custom-dates label {
  display: grid;
  gap: 5px;
  color: #40534d;
  font-size: .86rem;
  font-weight: 750;
}

.tf-r29-time-page .tf728-time-result-count {
  overflow-wrap: anywhere;
}

.brandmark.tf-r29-brandmark {
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: -.04em;
}

.tf-r29-job-details {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  line-height: 1.3;
}

.tf-r29-job-details span {
  display: block;
  overflow-wrap: anywhere;
}

.tf-r29-job-details b {
  color: #4d6058;
}

#tf713-time-results td:has(.tf71436-source-badge) > .tf-r26-nonbillable {
  display: none;
}

@media (min-width: 901px) {
  .tf-r29-job-details {
    min-width: 190px;
  }

  #tf713-time-results table {
    min-width: 1120px;
    table-layout: auto;
  }

  #tf713-time-results th:nth-last-child(2),
  #tf713-time-results td:nth-last-child(2) {
    width: 190px;
    min-width: 190px;
  }

  #tf713-time-results td:nth-last-child(2) .pill,
  #tf713-time-results td:nth-last-child(2) .tf-r26-nonbillable,
  #tf713-time-results td:nth-last-child(2) .tf71436-source-badge {
    max-width: 176px;
    line-height: 1.2;
  }

  #tf713-time-results .tf-r26-nonbillable,
  #tf713-time-results .tf71436-source-badge {
    display: inline-flex;
    width: fit-content;
    margin: 5px 0 0;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: .72rem;
    white-space: normal;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .tf-r29-time-page .tf728-time-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "date customer"
      "custom custom"
      "job staff"
      "approval billing";
  }
}

@media (max-width: 720px) {
  .tf-r29-time-page > .pagehead {
    display: block;
  }

  .tf-r29-time-page .tf-r29-time-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-top: 12px;
  }

  .tf-r29-time-page .tf-r29-time-toolbar .btn,
  .tf-r29-time-page .tf-r29-time-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .tf-r29-time-page > .tf728-time-search-panel {
    padding: 13px;
  }

  .tf-r29-time-page .tf728-time-search-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-r29-time-page .tf728-time-search-row input {
    grid-column: 1 / -1;
  }

  .tf-r29-time-page .tf728-time-search-row .btn {
    width: 100%;
    min-width: 0;
  }

  .tf-r29-time-page .tf728-time-filter-grid,
  .tf-r29-time-page .tf728-time-custom-dates {
    grid-template-columns: minmax(0, 1fr);
  }

  .tf-r29-time-page .tf728-time-filter-grid {
    grid-template-areas:
      "date"
      "custom"
      "customer"
      "job"
      "staff"
      "approval"
      "billing";
  }

  .tf-r29-time-page .tf728-time-search-main small {
    line-height: 1.4;
  }
}

@media (max-width: 380px) {
  .tf-r29-time-page .tf728-time-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tf-r29-time-page .tf728-time-search-row input {
    grid-column: auto;
  }
}
