/* DTF redesign shell. Spec tokens are restated here so a leftover dev theme cannot recolor the field UI. */

body.dtf-redesign {
  --bg: #eef2f5;
  --surface: #ffffff;
  --surface-alt: #f4f7f9;
  --border: #c5d0da;
  --border-strong: #7f8f9d;
  --icon: #5f7181;
  --accent: #3f5263;
  --accent-hover: #324251;
  --accent-dark: #3a4a57;
  --accent-soft: #e3ebf1;
  --danger: #a13d3d;
  --danger-soft: #f7ecec;
  --danger-border: #e3bdbd;
  --danger-hover: #efd6d6;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --font-display: "IBM Plex Sans", system-ui, sans-serif;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

body.dtf-redesign:not(.dtf-classic-work) {
  --text: #1d2731;
  --text-muted: #4a5866;
}

[data-theme="dark"] body.dtf-redesign {
  --bg: #151b22;
  --surface: #1e2730;
  --surface-alt: #26313c;
  --border: #3a4855;
  --border-strong: #6a7d8e;
  --text: #e8eef3;
  --icon: #9eb0bf;
  --accent: #8fa9c0;
  --accent-hover: #a7bdd1;
  --accent-dark: #10161d;
  --accent-soft: #2a3540;
  --danger: #e59292;
  --danger-soft: #3a2727;
  --danger-border: #5c3a3a;
  --danger-hover: #4a3030;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --font-display: "IBM Plex Sans", system-ui, sans-serif;
}

[data-theme="dark"] body.dtf-redesign:not(.dtf-classic-work) {
  --text-muted: #c5d0da;
}

body.dtf-redesign > .app-footer,
body.dtf-redesign > main.container {
  display: none !important;
}

body.dtf-redesign > .app-header {
  display: block !important;
}

html:not([data-dtf-env="dev"]) body.dtf-redesign [data-dtf-env-only="dev"] {
  display: none !important;
}

.dtf-app {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: 1.35;
}

.dtf-sidebar {
  display: none;
}

.dtf-main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.dtf-nav {
  box-sizing: content-box;
  height: var(--nav-height);
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--space-2));
  padding-right: var(--space-2);
  padding-bottom: 0;
  padding-left: var(--space-2);
  background: var(--bg);
  position: relative;
  z-index: 3;
  flex: none;
  max-width: 100%;
  overflow: hidden;
}

.dtf-nav-side {
  display: flex;
  align-items: center;
  min-height: var(--target-min);
  min-width: 0;
}

.dtf-nav-side-right {
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
}

.dtf-nav-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11pt;
  pointer-events: none;
}

.dtf-mark {
  height: 22pt;
  width: auto;
  display: block;
}

.dtf-mark-dark {
  display: none;
}

[data-theme="dark"] .dtf-mark-light {
  display: none;
}

[data-theme="dark"] .dtf-mark-dark {
  display: block;
}

.dtf-screen {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--space-gutter) var(--space-8);
}

.dtf-screen > * {
  flex-shrink: 0;
}

.dtf-label {
  margin: var(--section-label-gap) 0 var(--space-2);
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--text-muted);
}

.dtf-eyebrow {
  margin: var(--section-label-gap) 0 var(--space-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.dtf-screen > .dtf-eyebrow:first-child,
.dtf-kicker {
  margin-top: var(--space-2);
}

.dtf-title,
.dtf-section-title,
.dtf-sheet h2,
body.dtf-redesign h1.dtf-title,
body.dtf-redesign h1.dtf-section-title,
body.dtf-redesign h2.dtf-section-title,
body.dtf-redesign .dtf-sheet h2 {
  font-family: var(--font-sans);
}

.dtf-title {
  margin: 0;
  font-size: var(--type-large-title-size);
  font-weight: var(--type-large-title-weight);
  letter-spacing: var(--type-large-title-tracking);
  line-height: 1.1;
}

.dtf-section-title {
  margin: 0 0 var(--space-3);
  font-size: var(--type-section-size);
  font-weight: var(--type-section-weight);
  letter-spacing: var(--type-section-tracking);
  line-height: 1.15;
}

.dtf-hero {
  margin: 0;
  font-size: var(--type-hero-size);
  font-weight: var(--type-hero-weight);
  letter-spacing: var(--type-hero-tracking);
  line-height: 1;
}

.dtf-sub,
.dtf-muted {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
  font-size: var(--type-secondary-size);
  font-weight: var(--type-secondary-weight);
}

.dtf-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-top: var(--space-4);
  overflow: hidden;
}

.dtf-row {
  width: 100%;
  min-height: var(--row-min-height);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.dtf-row:last-child {
  border-bottom: 0;
}

.dtf-row-text {
  flex: 1;
  min-width: 0;
}

.dtf-row-title {
  display: block;
  font-size: var(--type-row-size);
  font-weight: var(--type-row-weight);
}

.dtf-row-sub {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--type-secondary-size);
}

.dtf-row.is-done .dtf-row-title {
  color: var(--text-muted);
}

.dtf-chevron {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
}

.dtf-sync-label {
  flex: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dtf-job-line {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.dtf-job-line:last-child {
  border-bottom: 0;
}

.dtf-job-line .dtf-row {
  flex: 1;
  border-bottom: 0;
  min-width: 0;
}

.dtf-job-log {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 56px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.dtf-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: none;
  box-sizing: border-box;
  vertical-align: middle;
}

.dtf-dot-filled {
  background: var(--accent);
}

.dtf-dot-ring {
  background: transparent;
  border: 1.5px solid var(--accent);
}

.dtf-dot-danger {
  background: var(--danger);
}

.dtf-dot-danger-ring {
  background: transparent;
  border: 1.5px solid var(--danger);
}

.dtf-dot-halo {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.dtf-btn,
.dtf-text-btn,
.dtf-nav-btn,
.dtf-icon-btn {
  font-family: inherit;
  cursor: pointer;
}

.dtf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: max(var(--btn-height), var(--target-min));
  margin-top: var(--space-4);
  padding: 0 var(--space-4);
  border-radius: var(--radius-button);
  border: 0;
  font-size: var(--type-body-size);
  font-weight: 600;
}

.dtf-btn-primary {
  background: var(--accent);
  color: #fff;
}

.dtf-btn-primary:disabled {
  opacity: 0.45;
}

.dtf-btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #c4ced8;
}

.dtf-btn-danger {
  background: var(--danger);
  color: #fff;
}

.dtf-btn-row {
  display: flex;
  gap: var(--space-3);
}

.dtf-btn-row .dtf-btn {
  width: auto;
  flex: 1;
}

.dtf-text-btn,
.dtf-nav-btn {
  min-height: var(--target-min);
  min-width: var(--target-min);
  padding: 0 var(--space-2);
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: var(--type-body-size);
  font-weight: 500;
}

.dtf-icon-btn {
  min-width: var(--target-min);
  min-height: var(--target-min);
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
}

.dtf-segments {
  display: flex;
  gap: 0;
  box-sizing: border-box;
  height: auto;
  min-height: 44pt;
  margin-top: var(--space-4);
  padding: 3px;
  background: var(--accent-soft);
  border-radius: 10px;
}

.dtf-segment {
  flex: 1;
  min-height: 44pt;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: var(--type-body-size);
  font-weight: 600;
  padding: 4px;
  cursor: pointer;
}

.dtf-segment span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dtf-segment.is-selected {
  background: #fff;
  color: var(--text);
}

.dtf-passfail {
  display: flex;
  gap: 3px;
  min-height: 44pt;
  padding: 3px;
  background: var(--accent-soft);
  border-radius: var(--radius-segment);
}

.dtf-passfail button {
  flex: 1;
  height: 44pt;
  min-height: 44pt;
  border: 0;
  border-radius: var(--radius-segment-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: var(--type-body-size);
  font-weight: 700;
  cursor: pointer;
}

.dtf-passfail button.is-pass {
  background: var(--accent);
  color: #fff;
}

.dtf-passfail button.is-fail {
  background: var(--danger);
  color: #fff;
}

.dtf-passfail button.is-na,
.dtf-passfail button.is-on {
  background: var(--accent);
  color: #fff;
}

.dtf-chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.dtf-sev,
.dtf-chip,
.dtf-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44pt;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  font-size: var(--type-chip-size);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.2;
}

.dtf-sev-critical {
  background: var(--danger);
  color: #fff;
}

.dtf-sev-major {
  background: #fff;
  color: var(--danger);
  border: 1.5px solid var(--danger);
}

.dtf-sev-minor {
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.dtf-sev-info {
  background: var(--surface-alt);
  color: var(--text-muted);
}

.dtf-code {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.dtf-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  min-height: 44pt;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0 8px;
  font-family: inherit;
  cursor: pointer;
}

.dtf-warn .dtf-dot,
.dtf-sub .dtf-dot-danger-ring {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 2px solid var(--danger);
  border-radius: 999px;
  background: transparent;
  box-sizing: border-box;
  vertical-align: middle;
}

.dtf-card > .dtf-sub {
  margin: 0;
  padding: var(--space-4);
}

.dtf-photo-flag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.dtf-item {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.dtf-item-text {
  margin: 0 0 var(--space-2);
  font-size: var(--type-body-size);
  font-weight: 600;
}

.dtf-note-line {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: var(--type-secondary-size);
}

.dtf-field,
.dtf-select,
.dtf-input {
  width: 100%;
  min-height: var(--target-min);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--type-body-size);
  padding: 0 12px;
}

.dtf-textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.dtf-number {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dtf-number span {
  color: var(--text-muted);
  font-size: var(--type-secondary-size);
}

.dtf-progress-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin: calc(var(--space-2) * -1) calc(var(--space-gutter) * -1) var(--space-3);
  padding: var(--space-2) var(--space-gutter);
}

.dtf-progress-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: baseline;
}

.dtf-progress {
  height: 4px;
  margin-top: var(--space-2);
  background: var(--accent-soft);
  border-radius: 999px;
  overflow: hidden;
}

.dtf-progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
}

.dtf-skeleton {
  height: var(--row-min-height);
  margin-top: var(--space-2);
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, var(--accent-soft), var(--surface), var(--accent-soft));
  background-size: 200% 100%;
}

.dtf-legend {
  padding: var(--space-4);
}

.dtf-legend p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-size: var(--type-secondary-size);
  font-weight: 600;
}

.dtf-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  font-size: var(--type-body-size);
}

.dtf-strike {
  text-decoration: line-through;
  color: var(--text-muted);
}

.dtf-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  background: var(--accent-soft);
  flex: none;
}

.dtf-initials {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.dtf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--target-min);
  margin-top: var(--space-1);
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-chip);
  background: var(--danger-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dtf-sync-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  margin-top: var(--space-4);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: var(--type-secondary-size);
  cursor: pointer;
}

.dtf-sync-row strong {
  font-weight: 600;
}

.dtf-sync-row.is-pinned {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  padding: var(--space-2) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.dtf-dim {
  position: fixed;
  top: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + var(--space-2));
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(36, 48, 58, 0.42);
  z-index: 40;
}

.dtf-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-height: calc(100% - var(--nav-height) - env(safe-area-inset-top, 0px) - var(--space-2) - 8px);
  overflow: auto;
  padding: 0 var(--space-gutter) var(--space-6);
  background: var(--surface);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  box-shadow: 0 -8px 30px rgba(36, 48, 58, 0.15);
}

.dtf-sheet.is-partial {
  max-height: min(640px, 72%);
}

.dtf-grabber {
  width: 40px;
  height: 5px;
  margin: 8px auto 12px;
  border-radius: 999px;
  background: var(--border);
}

.dtf-sheet h2 {
  margin: 0 0 var(--space-3);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.dtf-photo-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.dtf-sheet .dtf-photo-row .dtf-photo-tile {
  width: 116px;
  height: 116px;
  min-height: 116px;
  margin: 0;
  flex: none;
}

.dtf-photo-help {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--type-secondary-size);
}

.dtf-inset {
  margin-top: var(--space-3);
  background: var(--surface-alt);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.dtf-inset-row {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--type-secondary-size);
}

.dtf-inset-row:last-child {
  border-bottom: 0;
}

.dtf-inset-row .dtf-input,
.dtf-inset-row .dtf-select,
.dtf-inset-row .dtf-textarea {
  margin-top: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  min-height: 44pt;
}

.dtf-inset-row .dtf-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 18px;
}

.dtf-pair {
  display: flex;
  gap: var(--space-2);
}

.dtf-pair .dtf-input {
  flex: 1;
}

.dtf-photo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: var(--space-3) 0;
  border-radius: var(--radius-card);
  border: 1.5px dashed var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: var(--type-body-size);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.dtf-photo-tile.is-required {
  border-color: var(--danger);
  color: var(--danger);
}

.dtf-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.dtf-proof {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
}

.dtf-proof-slot {
  flex: 1;
  min-width: 0;
}

.dtf-proof-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.dtf-proof-thumb {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0;
}

.dtf-proof-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.dtf-proof-stamp {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.dtf-sign-pad {
  position: relative;
  height: 170pt;
  margin: var(--space-3) 0;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.dtf-sign-pad canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.dtf-sign-base {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 36px;
  border-bottom: 1px solid var(--text);
  pointer-events: none;
}

.dtf-sign-hint {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: var(--text-muted);
  font-size: var(--type-secondary-size);
  pointer-events: none;
}

.dtf-toast {
  position: fixed;
  left: var(--space-gutter);
  right: var(--space-gutter);
  top: auto;
  bottom: calc(var(--space-4) + var(--btn-height) + var(--space-3));
  z-index: 35;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  padding: 12px 16px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-button);
  font-size: 15px;
}

.dtf-toast button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  min-height: var(--target-min);
  font-family: inherit;
  cursor: pointer;
}

.dtf-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: calc(92pt + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0 var(--space-3) env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.dtf-pill {
  min-height: var(--target-min);
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-chip);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dtf-toolbar button,
.dtf-float button {
  min-height: var(--target-min);
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: var(--type-body-size);
  font-weight: 600;
  cursor: pointer;
}

.dtf-float,
.dtf-takeoff-note {
  display: none;
}

.dtf-table-wrap {
  display: none;
}

.dtf-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  margin-top: var(--space-3);
  padding: 0 var(--space-3);
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--text-muted);
}

.dtf-search input {
  flex: 1;
  min-width: 0;
  min-height: var(--target-min);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--type-body-size);
}

.dtf-search svg {
  flex: none;
}

.dtf-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.dtf-filter {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44pt;
  min-width: 44pt;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: var(--type-secondary-size);
  cursor: pointer;
}

.dtf-filter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 32px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: -1;
}

.dtf-filter.is-on {
  color: #fff;
}

.dtf-filter.is-on::before {
  background: var(--accent);
  border-color: var(--accent);
}

.dtf-desk-meta {
  display: none;
}

.dtf-desk-nav {
  display: none;
}

.dtf-round-check {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.dtf-round-check:checked {
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #fff;
}

.dtf-inline-prompt {
  margin: var(--space-2) 0 0;
  color: var(--text);
  font-size: var(--type-body-size);
}

.dtf-pdf-page {
  width: 100%;
  max-width: 816px;
  min-height: 1056px;
  margin: 0 auto var(--space-4);
  padding: 32px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.dtf-pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
}

.dtf-pdf-head .dtf-mark {
  height: 26pt;
}

.dtf-pdf-brand {
  text-align: right;
  font-size: var(--type-secondary-size);
}

.dtf-fail-text {
  color: var(--danger);
  font-weight: 700;
}

.dtf-bar {
  height: 8px;
  margin-top: 6px;
  background: var(--accent-soft);
  border-radius: 999px;
  overflow: hidden;
}

.dtf-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.dtf-menu {
  padding: var(--space-2) 0;
}

.dtf-check-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  flex: none;
}

.dtf-check-circle.is-on {
  background: var(--accent);
}

.dtf-star {
  min-width: var(--target-min);
  min-height: var(--target-min);
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
}

.dtf-inline-form label {
  display: block;
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--type-secondary-size);
}

.dtf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 420px) {
  .dtf-segment {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dtf-progress > span,
  .dtf-bar > span,
  .dtf-skeleton {
    transition: none;
    animation: none;
  }
}

@media (min-width: 1024px) {
  .dtf-app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .dtf-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
  }

  .dtf-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10pt;
    min-height: 72px;
    padding: var(--space-4);
  }

  .dtf-sidebar-brand .dtf-mark {
    height: 26pt;
  }

  .dtf-sidebar-name {
    font-size: var(--type-row-size);
    font-weight: 700;
  }

  .dtf-sidebar-list {
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
    padding-bottom: var(--space-4);
  }

  .dtf-side-job {
    width: 100%;
    min-height: var(--row-min-height);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
  }

  .dtf-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--space-2));
    padding-right: var(--space-gutter);
    padding-bottom: 0;
    padding-left: var(--space-gutter);
  }

  .dtf-nav .dtf-nav-mark {
    display: none;
  }

  .dtf-desk-nav {
    display: none;
  }

  .dtf-side-label {
    margin: var(--space-2) var(--space-4) 0;
  }

  .dtf-side-job.is-current {
    background: transparent;
    font-weight: 700;
  }

  .dtf-desk-meta {
    display: none;
  }

  .dtf-head-cluster {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .dtf-dim {
    top: 0;
    left: 280px;
  }

  .dtf-sheet {
    left: 280px;
  }

  .dtf-job-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .dtf-job-head .dtf-title {
    white-space: nowrap;
  }

  .dtf-head-cluster {
    width: 100%;
    align-items: flex-start;
  }

  .dtf-job-head .dtf-segments {
    width: min(520px, 100%);
    margin-top: 0;
  }

  .dtf-rooms {
    display: none;
  }

  .dtf-takeoff-note {
    display: block;
  }

  .dtf-table-wrap {
    display: block;
    margin-top: var(--space-4);
    background: var(--surface);
    border-radius: var(--radius-card);
    overflow: auto;
  }

  .dtf-table {
    width: 100%;
    border-collapse: collapse;
  }

  .dtf-table th {
    text-align: left;
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  .dtf-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: var(--type-body-size);
    vertical-align: middle;
  }

  .dtf-table tr {
    min-height: var(--row-min-height);
  }

  .dtf-float {
    display: flex;
    position: fixed;
    z-index: 8;
    left: 280px;
    right: 0;
    bottom: var(--space-4);
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: max-content;
    max-width: calc(100vw - 280px - 32px);
    margin: 0 auto;
    padding: 10px 16px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-chip);
    white-space: nowrap;
  }

  .dtf-float > * {
    flex-shrink: 0;
  }

  .dtf-float button {
    color: #fff;
    background: transparent;
    min-height: 44pt;
    padding: 0 4px;
    white-space: nowrap;
  }

  .dtf-float .dtf-float-pill {
    background: #fff;
    color: var(--text);
    border-radius: var(--radius-chip);
    min-height: 44pt;
    padding: 0 16px;
    font-weight: 700;
  }

  .dtf-toast {
    left: calc(280px + var(--space-gutter));
  }

  .dtf-toolbar {
    display: none;
  }
}

@media (min-width: 1280px) {
  .dtf-job-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .dtf-head-cluster {
    width: auto;
    align-items: flex-end;
  }

  .dtf-job-head .dtf-segments {
    width: min(520px, 46vw);
  }
}

@media (max-width: 1023px) {
  body.dtf-redesign.is-select .dtf-rooms {
    padding-bottom: calc(92pt + env(safe-area-inset-bottom, 0px));
  }

  body.dtf-redesign.is-select .dtf-toast {
    bottom: calc(92pt + env(safe-area-inset-bottom, 0px) + 12px);
  }
}

@media print {
  body.dtf-redesign > .app-header,
  body.dtf-redesign > .app-footer,
  body.dtf-redesign > main.container,
  .dtf-nav,
  .dtf-sidebar,
  .dtf-no-print {
    display: none !important;
  }

  .dtf-app {
    position: static;
    display: block;
    background: #fff;
  }

  .dtf-pdf-page {
    box-shadow: none;
    page-break-after: always;
  }
}

#dtf-park {
  display: none !important;
}

#dtf-embed-host > .dtf-embedded {
  position: relative !important;
  display: block !important;
  transform: none !important;
  visibility: visible !important;
  width: 100% !important;
  height: auto !important;
  inset: auto !important;
  z-index: auto !important;
  pointer-events: auto !important;
}

.dtf-nav-brand {
  gap: 8px;
  min-width: 0;
}

.dtf-brand-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.dtf-head-sync,
.dtf-initials-btn,
.dtf-side-account,
.dtf-tab,
.dtf-icon-btn {
  min-width: 44pt;
  min-height: 44pt;
}

.dtf-head-sync,
.dtf-initials-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.dtf-initials-btn,
.dtf-side-account {
  border-radius: 999px;
  font-weight: 700;
}

.dtf-schedules,
.dtf-job-tools,
.dtf-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.dtf-search {
  display: block;
  margin: var(--space-2) 0;
}

.dtf-tabs-bar,
.dtf-tabs-side {
  display: none !important;
}

.dtf-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}

.dtf-tab.is-selected {
  color: var(--text);
  font-weight: 700;
}

body.dtf-redesign.is-select .dtf-tabs-bar {
  display: none;
}

.dtf-sheet.is-confirm,
.dtf-dim.is-confirm {
  z-index: 500;
}

body.dtf-confirm-open #dtf-app {
  z-index: 500;
}

.dtf-markup-canvas {
  width: 100%;
  max-width: 640px;
  height: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  touch-action: none;
}

@media (min-width: 1024px) {

  .dtf-side-account {
    margin-top: auto;
    border: 0;
    background: transparent;
    text-align: left;
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
  }
}

.dtf-page {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.dtf-jobs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dtf-jobs-head > div {
  min-width: 0;
}

.dtf-jobs-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dtf-punch-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 8px 0 12px;
}

.dtf-punch-field,
.dtf-punch-search {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 0;
  font-size: 10px;
  line-height: 1.1;
  color: var(--text-muted);
}

.dtf-punch-search {
  flex: 1.3 1 0;
}

.dtf-punch-field .dtf-select,
.dtf-punch-search input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 44pt;
}

.dtf-punch-bar .dtf-nav-btn {
  flex: 0 0 auto;
}

.dtf-status-chip {
  flex: none;
  align-self: center;
  max-width: 34%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.dtf-offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 44pt;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.dtf-offline-icon {
  flex: none;
  display: block;
}

.dtf-offline-count {
  display: none;
}

.dtf-offline-full {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 420px) {
  .dtf-nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .dtf-nav-mark {
    padding: 4px;
  }
}

@media (max-width: 360px) {
  .dtf-brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 359px) {
  .dtf-nav {
    padding-left: 4px;
    padding-right: 4px;
  }

  .dtf-nav-brand {
    gap: 4px;
  }

  .dtf-nav-brand .dtf-mark {
    height: 16px;
  }

  .dtf-brand-name {
    font-size: 13px;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .dtf-punch-bar {
    flex-wrap: wrap;
    overflow: visible;
  }

  .dtf-punch-field {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    max-width: calc(50% - 2px);
  }

  .dtf-punch-field .dtf-select {
    min-width: 100%;
    padding-left: 8px;
    padding-right: 1.4rem;
  }

  .dtf-punch-search {
    flex: 1 0 100%;
    max-width: 100%;
  }

  .dtf-nav-mark {
    padding: 0;
  }
}

.dtf-job-more {
  flex: 0 0 auto;
  min-width: 44pt;
  min-height: 44pt;
}

.dtf-job-name {
  margin: 0;
  font-size: 28pt;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.dtf-seg-count {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.dtf-count {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.dtf-search-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.dtf-search-row .dtf-search {
  flex: 1;
  min-width: 0;
  margin: var(--space-2) 0;
}

.dtf-empty {
  padding: var(--space-6) 0;
}

.dtf-empty-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

body.dtf-redesign.dtf-classic-home > .app-header,
body.dtf-redesign.dtf-classic-home > main.container {
  display: block !important;
}

body.dtf-redesign.dtf-classic-home > main.container > :not(#app-home) {
  display: none !important;
}

body.dtf-redesign.dtf-classic-home #app-home {
  display: block !important;
}

body.dtf-redesign.dtf-classic-home #dtf-app {
  background: transparent;
  pointer-events: none;
}

body.dtf-redesign.dtf-classic-home #dtf-app .dtf-main,
body.dtf-redesign.dtf-classic-home #dtf-app .dtf-sidebar {
  display: none !important;
}

body.dtf-redesign.dtf-classic-home #dtf-app .dtf-dim,
body.dtf-redesign.dtf-classic-home #dtf-app .dtf-sheet,
body.dtf-redesign.dtf-classic-home #dtf-app .dtf-toast {
  pointer-events: auto;
  z-index: 90;
}

body.dtf-redesign.dtf-classic-home .dtf-dim {
  top: 0;
}

/* Classic work screens. Tokens come from :root; this block only restyles. */

.dtf-view-only {
  background: var(--accent-dark, #3a4a57);
  color: var(--header-text, #fff);
  padding: 8px var(--space-gutter, 16px);
  font-weight: 600;
}

body.dtf-role-viewer [data-write="1"],
body.dtf-role-viewer [data-insp-result],
body.dtf-role-viewer [data-insp-done],
body.dtf-role-viewer [data-insp-sign-clear],
body.dtf-role-viewer [data-insp-addon] {
  display: none !important;
}

.dtf-offline-banner {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-gutter);
}

.dtf-offline-banner .dtf-offline-pill {
  width: 100%;
  max-width: none;
  min-height: 44pt;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
}

.dtf-offline-banner .dtf-offline-full {
  display: inline;
}

.dtf-punch-openbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12pt;
  min-height: 44pt;
  padding: 0 var(--space-gutter);
  background: var(--accent-dark);
  color: var(--header-text);
}

.dtf-punch-openbar-label,
.dtf-open-count {
  color: var(--header-text);
}

.dtf-open-count {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.dtf-totals {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 12pt;
  margin: 0 calc(var(--space-gutter) * -1) 12pt;
  padding: 8px var(--space-gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dtf-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dtf-total span {
  color: var(--text-muted);
  font-size: 12px;
}

.dtf-total strong {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 600;
}

.dtf-punch-line {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.dtf-punch-line:last-child {
  border-bottom: 0;
}

.dtf-punch-line .dtf-row {
  flex: 1;
  min-width: 0;
  min-height: 44pt;
  border-bottom: 0;
}

.dtf-proof-jump,
.dtf-log-jump {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44pt;
  min-height: 44pt;
  padding: 4px 8px;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dtf-row-age {
  flex: none;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}

.dtf-row-proof {
  display: block;
  width: 44pt;
  height: 44pt;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--surface-alt);
}

.dtf-line-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.dtf-line-table th,
.dtf-line-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-weight: 500;
  vertical-align: middle;
}

.dtf-line-table thead th {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.dtf-line-table th:last-child,
.dtf-line-table td:last-child,
.dtf-line-table .dtf-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dtf-line-table tbody tr:last-child th,
.dtf-line-table tbody tr:last-child td {
  border-bottom: 0;
}

.dtf-line-table tr:first-child th:first-child {
  border-top-left-radius: var(--radius);
}

.dtf-line-table tr:first-child th:last-child {
  border-top-right-radius: var(--radius);
}

.dtf-line-table .dtf-input {
  width: 100%;
  min-height: 44pt;
  text-align: right;
}

.dtf-quote-foot {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12pt;
  margin-top: 12pt;
}

.dtf-quote-total-label {
  color: var(--text-muted);
}

.dtf-quote-total {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dtf-quote-send {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12pt;
  margin-top: 12pt;
  padding: 12pt 0;
  background: var(--bg);
}

.dtf-quote-send .dtf-btn {
  width: 100%;
}

body.dtf-redesign.dtf-classic-work .dtf-nav {
  background: var(--accent-dark);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
}

body.dtf-redesign.dtf-classic-work .dtf-nav .dtf-nav-btn,
body.dtf-redesign.dtf-classic-work .dtf-nav .dtf-brand-name,
body.dtf-redesign.dtf-classic-work .dtf-nav .dtf-head-sync,
body.dtf-redesign.dtf-classic-work .dtf-nav .dtf-initials-btn,
body.dtf-redesign.dtf-classic-work .dtf-nav .dtf-icon-btn {
  color: var(--header-text);
}

body.dtf-redesign.dtf-classic-work .dtf-nav .dtf-mark-light {
  display: none;
}

body.dtf-redesign.dtf-classic-work .dtf-nav .dtf-mark-dark {
  display: block;
}

body.dtf-redesign.dtf-classic-work h1.dtf-title,
body.dtf-redesign.dtf-classic-work h1.dtf-section-title,
body.dtf-redesign.dtf-classic-work h2.dtf-section-title,
body.dtf-redesign.dtf-classic-work .dtf-sheet h2,
body.dtf-redesign.dtf-classic-work .dtf-job-name,
body.dtf-redesign.dtf-classic-work .dtf-quote-total,
body.dtf-redesign.dtf-classic-work .dtf-open-count {
  font-family: var(--font-serif);
}

body.dtf-redesign.dtf-classic-work .dtf-label {
  text-transform: none;
  letter-spacing: 0;
  margin: 12pt 0 0;
}

body.dtf-redesign.dtf-classic-work .dtf-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  margin-top: 12pt;
}

body.dtf-redesign.dtf-classic-work .dtf-label + .dtf-card {
  margin-top: 4px;
}

body.dtf-redesign.dtf-classic-work .dtf-btn {
  min-height: 44pt;
  border-radius: 999px;
  margin-top: 12pt;
}

body.dtf-redesign.dtf-classic-work .dtf-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
}

body.dtf-redesign.dtf-classic-work .dtf-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

body.dtf-redesign.dtf-classic-work .dtf-btn-row {
  gap: 12pt;
  margin-top: 12pt;
}

body.dtf-redesign.dtf-classic-work .dtf-btn-row .dtf-btn,
body.dtf-redesign.dtf-classic-work .dtf-quote-send .dtf-btn {
  margin-top: 0;
}

body.dtf-redesign.dtf-classic-work .dtf-pill,
body.dtf-redesign.dtf-classic-work .dtf-float-pill {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

body.dtf-redesign.dtf-classic-work .dtf-toolbar {
  background: var(--surface);
}

body.dtf-redesign.dtf-classic-work .dtf-segments {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  gap: 0;
}

body.dtf-redesign.dtf-classic-work .dtf-segment {
  border-radius: 0;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}

body.dtf-redesign.dtf-classic-work .dtf-segment.is-selected {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
}

body.dtf-redesign.dtf-classic-work .dtf-passfail {
  flex-direction: column;
  background: transparent;
  gap: 12pt;
  width: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 0;
}

body.dtf-redesign.dtf-classic-work .dtf-passfail button {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 56pt;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}

body.dtf-redesign.dtf-classic-work .dtf-passfail button.is-pass,
body.dtf-redesign.dtf-classic-work .dtf-passfail button.is-na,
body.dtf-redesign.dtf-classic-work .dtf-passfail button.is-on {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

body.dtf-redesign.dtf-classic-work .dtf-passfail button.is-fail {
  color: var(--danger);
  border-color: var(--danger);
  background: transparent;
}

body.dtf-redesign.dtf-classic-work .dtf-filter.is-on {
  color: var(--accent);
}

body.dtf-redesign.dtf-classic-work .dtf-filter.is-on::before {
  background: transparent;
  border-color: var(--accent);
}

body.dtf-redesign.dtf-classic-work .dtf-input,
body.dtf-redesign.dtf-classic-work .dtf-select,
body.dtf-redesign.dtf-classic-work .dtf-textarea {
  border-radius: var(--radius);
  min-height: 44pt;
}

body.dtf-redesign.dtf-classic-work .dtf-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12pt;
}

body.dtf-redesign.dtf-classic-work .dtf-proof-thumb img {
  width: 44pt;
  height: 44pt;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

body.dtf-redesign:not(.dtf-classic-home) #dtf-app {
  position: relative;
  inset: auto;
  z-index: 1;
  height: auto;
  min-height: calc(100vh - 5.5rem);
  overflow: visible;
}

body.dtf-redesign.dtf-classic-work .dtf-main,
body.dtf-redesign.dtf-classic-work .dtf-screen {
  overflow: visible;
  height: auto;
  flex: 1 0 auto;
}

body.dtf-redesign.dtf-classic-job {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.dtf-redesign.dtf-classic-job > .app-header {
  order: 1;
}

body.dtf-redesign.dtf-classic-job > #dtf-app {
  order: 2;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  background: transparent;
}

body.dtf-redesign.dtf-classic-job > main.container {
  order: 3;
  display: block !important;
  flex: 1 0 auto;
}

body.dtf-redesign.dtf-classic-job > .app-footer,
body.dtf-redesign.dtf-classic-job > #app-top-chrome,
body.dtf-redesign.dtf-classic-job .dtf-punch-openbar {
  display: none !important;
}

body.dtf-redesign.dtf-classic-job .dtf-nav,
body.dtf-redesign.dtf-classic-job .dtf-sidebar {
  display: none !important;
}

body.dtf-redesign.dtf-classic-job #dtf-app {
  display: flex;
  grid-template-columns: none;
}

body.dtf-classic-job .dtf-page {
  display: flex;
  flex-direction: column;
}

body.dtf-classic-job #dtf-embed-host {
  order: 2;
}

body.dtf-classic-job .dtf-schedules {
  order: 1;
}

body.dtf-classic-job .dtf-segments {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 0 12pt;
  overflow-x: auto;
}

body.dtf-classic-job .dtf-segment {
  flex: 1 1 0;
  min-height: 44pt;
  box-sizing: border-box;
}

#project-date,
#punch-project-date,
#punch-occupancy-date,
#punch-warranty-months {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44pt;
}

@media (min-width: 1024px) {
  body.dtf-redesign.dtf-classic-job .dtf-sidebar,
  body.dtf-redesign.dtf-classic-job .dtf-nav {
    display: none !important;
  }

  body.dtf-redesign.dtf-classic-job #dtf-app {
    display: flex;
    grid-template-columns: none;
  }
}

body.dtf-classic-job > main.container,
body.dtf-classic-job #punch-workspace,
body.dtf-classic-job .punch-app,
body.dtf-classic-job .punch-content,
body.dtf-classic-job #punch-project-info,
body.dtf-classic-job #punch-project-info .punch-panel-details,
body.dtf-classic-job #punch-project-info .punch-panel-summary,
body.dtf-classic-job #punch-project-info .punch-panel-details-body,
body.dtf-classic-job #punch-project-info .project-grid,
body.dtf-classic-job #punch-project-info label,
body.dtf-classic-job #punch-project-info .field-box,
body.dtf-classic-job #punch-project-info input {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.dtf-classic-job #punch-project-info .punch-panel-summary h2 {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.dtf-classic-job #punch-project-info .punch-panel-summary-meta {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
