.dt-workspace {
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.dt-heading,
.dt-tools,
.dt-footer,
.dt-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dt-heading {
  justify-content: space-between;
  padding: 20px 20px 12px;
}
.dt-heading p,
.dt-count,
.dt-nav,
.dt-status {
  font-size: 13px;
  color: var(--muted);
}
.dt-heading p {
  margin: 4px 0 0;
}
.dt-tools {
  padding: 2px 20px 15px;
}
.dt-tools .searchfield input {
  width: 190px;
}
.dt-scroll {
  max-height: min(65vh, 680px);
  overflow: auto;
  isolation: isolate;
  scrollbar-gutter: stable;
  overscroll-behavior-x: contain;
  scroll-padding-block-start: 38px;
}
.dt-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.dt-grid th,
.dt-grid td {
  padding: 7px;
  border-right: 1px solid #e6ece6;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.dt-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--line);
  background: #f0f5f0;
  font-size: 12px;
  color: #415c4b;
}
.dt-grid .dt-person,
.dt-grid th:first-child {
  position: sticky;
  left: 0;
  text-align: left;
  border-right: 1px solid #cfdcd1;
}
.dt-grid .dt-person {
  z-index: 1;
  background: #fafcf9;
}
.dt-grid th:first-child {
  z-index: 3;
}
.dt-person b,
.dt-person small {
  display: block;
  max-width: 19ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt-person small {
  font-size: 11px;
  color: var(--muted);
}
.dt-history {
  display: block;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dt-grid .dt-cell {
  padding: 3px;
}
.dt-cell input {
  width: 15ch;
  max-width: none;
  min-height: 33px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  font-size: 13px;
}
.dt-cell input::placeholder {
  color: #829187;
}
.dt-cell input[data-field="title"] {
  width: 23ch;
}
.dt-cell input[data-field="url"] {
  width: 23ch;
}
.dt-cell input[type="datetime-local"] {
  width: 195px;
}
.dt-cell input[inputmode="numeric"],
.dt-cell input[inputmode="decimal"] {
  width: 10ch;
  text-align: right;
}
.dt-cell:hover input,
.dt-cell input:focus {
  border-color: #b3c6b8;
  background: white;
}
.dt-cell.is-edited {
  background: #fff7da;
}
.dt-cell.is-edited input {
  border-color: #e2cb7b;
  background: #fffbed;
}
.dt-cell input[aria-invalid="true"],
.dt-cell.is-conflict input {
  border-color: #a45045;
  background: #fff0e9;
}
.dt-field-error:not([hidden]) {
  display: block;
  max-width: 20ch;
  padding: 3px 6px;
  white-space: normal;
  color: #863f32;
  font-size: 12px;
}
.dt-na {
  color: #89968c;
  text-align: center;
}
.dt-grid .dt-sum,
.dt-value {
  text-align: right;
}
.dt-value {
  background: #f8faf7;
  min-width: 100px;
  font-weight: 600;
}
.dt-value:last-child {
  color: var(--brand);
}
.dt-grid tbody tr:focus-within > .dt-person {
  background: #eaf2e4;
}
.dt-conflict {
  padding: 6px;
  max-width: 205px;
  white-space: normal;
  font-size: 12px;
  color: #763c2d;
}
.dt-conflict button {
  font-size: 12px;
  color: var(--brand);
  padding: 3px 5px;
  text-decoration: underline;
}
.dt-footer {
  justify-content: space-between;
  padding: 13px 18px;
  background: #f7faf5;
  border-top: 1px solid var(--line);
}
.dt-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dt-locate {
  padding: 4px 3px;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dt-reason input {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 5px 8px;
  font-size: 13px;
  width: 145px;
}
.dt-nav {
  justify-content: flex-end;
  padding: 10px 18px;
}
.dt-error {
  font-size: 13px;
  color: #863f32;
  border-radius: 8px;
  background: #fff0e8;
  margin: 0 15px 12px;
  padding: 9px 11px;
}
.dt-dialog {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(440px, 92vw);
  color: var(--ink);
  box-shadow: 0 15px 48px #233d2d26;
}
.dt-dialog::backdrop {
  background: #19342666;
}
.dt-form {
  display: grid;
  gap: 15px;
}
.dt-form header,
.dt-form footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dt-form footer {
  justify-content: flex-end;
}
.dt-form .dt-error {
  margin: 0;
}
@media (max-width: 650px) {
  .panel.dt-workspace {
    padding: 0;
  }
  .dt-heading,
  .dt-tools,
  .dt-footer,
  .dt-nav {
    padding-left: 12px;
    padding-right: 12px;
  }
  .dt-tools .searchfield {
    flex: 1;
  }
  .dt-tools .searchfield input {
    width: 100%;
  }
  .dt-footer .actions {
    flex-wrap: wrap;
  }
  .dt-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .dt-person b,
  .dt-person small {
    max-width: 13ch;
  }
  .dt-cell input {
    min-height: 40px;
    font-size: 16px;
  }
}
