:root {
  --ot-bg: #f8fafb;
  --ot-surface: #ffffff;
  --ot-border: #d9dee4;
  --ot-text: #1f2937;
  --ot-muted: #6b7280;
  --ot-primary: #006b63;
  --ot-primary-hover: #00544e;
  --ot-danger: #c0392b;
  --ot-warning: #c47b35;
  --ot-success: #2e8b57;
  --ot-info: #1f7ea8;
}

.daily-ot-modal-open {
  overflow: hidden;
}

.daily-ot-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(17, 24, 39, 0.62);
}

.daily-ot-card {
  position: relative;
  width: min(calc(100vw - 28px), 1760px);
  height: calc(100vh - 12px);
  max-height: calc(100vh - 12px);
  overflow-y: auto;
  background: var(--ot-surface);
  color: var(--ot-text);
  border: 1px solid rgba(217, 222, 228, 0.95);
  border-radius: 9px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.34);
  font-family: var(--font-body, "DM Sans", "Segoe UI", sans-serif);
}

.daily-ot-header,
.daily-ot-body,
.daily-ot-footer {
  box-sizing: border-box;
}

.daily-ot-card svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-ot-submit-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(2px);
  cursor: wait;
}

.daily-ot-submit-loader > div {
  min-width: min(320px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  color: var(--ot-text);
  background: #fff;
  border: 1px solid var(--ot-border);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.daily-ot-submit-loader strong {
  font-size: 14px;
}

.daily-ot-submit-loader small {
  color: var(--ot-muted);
  font-size: 12px;
}

.daily-ot-opening-card {
  width: min(360px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 24px 22px;
  color: var(--ot-text);
  background: #fff;
  border: 1px solid var(--ot-border);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
  font-family: var(--font-body, "DM Sans", "Segoe UI", sans-serif);
}

.daily-ot-opening-card strong {
  font-size: 14px;
}

.daily-ot-opening-card small {
  color: var(--ot-muted);
  font-size: 12px;
}

.daily-ot-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 88, 79, 0.16);
  border-top-color: var(--ot-primary);
  border-radius: 50%;
  animation: daily-ot-spin 700ms linear infinite;
}

@keyframes daily-ot-spin {
  to {
    transform: rotate(360deg);
  }
}

.daily-ot-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 32px 38px 24px;
  border-bottom: 1px solid var(--ot-border);
  background: #fff;
}

.daily-ot-header-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.daily-ot-title-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.daily-ot-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--ot-primary);
  background: #eff8f7;
  border-radius: 8px;
  font-size: 22px;
  flex: 0 0 auto;
}

.daily-ot-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.daily-ot-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.daily-ot-title-date {
  color: var(--ot-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.daily-ot-header p {
  margin: 8px 0 0;
  color: var(--ot-muted);
  font-size: 15px;
  line-height: 1.35;
}

.daily-ot-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ot-muted);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  margin-right: 0;
}

.daily-ot-icon-btn:hover {
  background: #f0ede5;
  color: var(--ot-text);
}

.daily-ot-body {
  padding: 24px 36px 16px;
  background: #fff;
}

.daily-ot-steps {
  display: grid;
  grid-template-columns: max-content minmax(44px, 1fr) max-content minmax(44px, 1fr) max-content minmax(44px, 1fr) max-content;
  align-items: center;
  gap: 18px;
}

.daily-ot-step {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.daily-ot-step-number {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 1;
  color: #5f6773;
  background: #f8fafc;
  border: 1px solid #cfd5dc;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: color 260ms ease, border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.daily-ot-step-number::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 35% 28%, #19a69a 0, #007267 48%, #004f4a 100%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.daily-ot-step-number {
  isolation: isolate;
}

.daily-ot-step.is-active .daily-ot-step-number {
  color: #fff;
  border-color: transparent;
  background: transparent;
  box-shadow: 0 7px 16px rgba(0, 107, 99, 0.24);
  transform: translateY(-1px);
}

.daily-ot-step.is-active .daily-ot-step-number::before {
  opacity: 1;
}

.daily-ot-step-number svg {
  width: 18px;
  height: 18px;
}

.daily-ot-step-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.daily-ot-step-text strong {
  color: var(--ot-text);
  font-size: 14px;
  line-height: 1.1;
}

.daily-ot-step-text em {
  color: var(--ot-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.15;
  white-space: nowrap;
}

.daily-ot-step-line {
  --daily-ot-step-line-progress: 0%;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      var(--ot-primary) var(--daily-ot-step-line-progress),
      #d7dce2 var(--daily-ot-step-line-progress)
    );
}

.daily-ot-top-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(180px, 0.55fr);
  align-items: start;
  gap: 42px;
  margin-bottom: 0;
}

.daily-ot-assignment-step {
  display: grid;
  gap: 20px;
}

.daily-ot-assignment-top {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(180px, 0.7fr) minmax(420px, 1.8fr);
  gap: 34px;
  align-items: start;
  padding: 20px 24px 16px;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  background: #fff;
}

.daily-ot-assignment-selected {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.daily-ot-assignment-selected-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--ot-text);
  font-size: 14px;
  font-weight: 800;
}

.daily-ot-assignment-selected-head > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: var(--ot-primary);
  background: #eaf7f4;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.daily-ot-assignment-selected-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  background: #fff;
}

.daily-ot-assignment-chip {
  min-width: 150px;
  max-width: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 2px 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  background: #fff;
}

.daily-ot-assignment-chip strong,
.daily-ot-assignment-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-ot-assignment-chip strong {
  color: var(--ot-text);
  font-size: 13px;
}

.daily-ot-assignment-chip span {
  color: var(--ot-muted);
  font-size: 12px;
}

.daily-ot-assignment-chip button,
.daily-ot-assignment-selected-chevron {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ot-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ot-text);
  cursor: pointer;
}

.daily-ot-assignment-selected-chevron {
  margin-left: auto;
  border: 0;
  color: #111827;
}

.daily-ot-assignment-panel {
  padding: 14px 10px 8px;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  background: #fff;
}

.daily-ot-assignment-panel-head {
  margin: 0 10px 12px;
}

.daily-ot-assignment-panel-head h3 {
  font-size: 20px;
}

.daily-ot-collapse-all {
  min-height: 42px;
}

.daily-ot-assignment-step .daily-ot-mechanics {
  display: grid;
  gap: 8px;
}

.daily-ot-assignment-step .daily-ot-summary-section {
  display: block;
}

.daily-ot-assignment-step .daily-ot-mechanic {
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.daily-ot-assignment-step .daily-ot-mechanic.is-expanded {
  border-color: rgba(0, 107, 99, 0.38);
}

.daily-ot-assignment-step .daily-ot-mechanic-head {
  min-height: 58px;
  padding: 0 18px;
  cursor: pointer;
}

.daily-ot-assignment-step .daily-ot-mechanic-title {
  gap: 12px;
}

.daily-ot-assignment-step .daily-ot-mechanic-title > span:first-child {
  color: #0f172a;
  transition: transform 160ms ease;
}

.daily-ot-assignment-step .daily-ot-mechanic.is-expanded .daily-ot-mechanic-title > span:first-child {
  transform: rotate(180deg);
}

.daily-ot-assignment-step .daily-ot-mechanic-title > span:nth-child(2) {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ot-primary);
  background: #e8f5f2;
  border-radius: 999px;
}

.daily-ot-assignment-step .daily-ot-mechanic-title strong {
  font-size: 16px;
}

.daily-ot-assignment-step .daily-ot-hours-badge {
  min-width: 72px;
  justify-content: center;
  padding: 7px 12px;
  background: #e7f7ea;
  color: #047857;
  font-size: 13px;
}

.daily-ot-assignment-step .daily-ot-hours-badge.warning {
  color: #b45309;
  background: #fff1dd;
}

.daily-ot-assignment-step .daily-ot-hours-left {
  font-size: 12px;
}

.daily-ot-assignment-step .daily-ot-mechanic-pause-badge {
  min-height: 42px;
  padding: 0 12px;
  background: #fff;
  border-color: var(--ot-border);
  border-radius: 8px;
}

.daily-ot-assignment-step .daily-ot-mechanic-body {
  padding: 0 18px 10px;
}

.daily-ot-assignment-step .daily-ot-mechanic-badges {
  padding: 14px 4px 12px;
  background: #fff;
  border-bottom: 0;
}

.daily-ot-assignment-step .daily-ot-badge-btn {
  min-width: 210px;
  min-height: 52px;
  justify-content: flex-start;
  padding: 8px 14px;
  color: var(--ot-text);
  background: #fbffff;
  border-color: rgba(0, 107, 99, 0.5);
  border-radius: 8px;
  font-size: 13px;
}

.daily-ot-assignment-step .daily-ot-table-wrap {
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  overflow: hidden;
}

.daily-ot-assignment-step .daily-ot-empty-row div {
  min-height: 112px;
}

.daily-ot-fields-panel {
  padding: 24px;
  border: 1px solid var(--ot-border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.daily-ot-field,
.daily-ot-delay-fields label {
  display: grid;
  align-content: start;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ot-text);
}

.daily-ot-field b,
.daily-ot-delay-fields b {
  color: #ef4444;
}

.daily-ot-field input,
.daily-ot-search input,
.daily-ot-hours-input,
.daily-ot-delay-fields input,
.daily-ot-status-pill select {
  min-height: 34px;
  border: 1px solid var(--ot-border);
  border-radius: 7px;
  background: #fff;
  color: var(--ot-text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.daily-ot-field input,
.daily-ot-delay-fields input {
  padding: 0 12px;
}

.daily-ot-top-grid .daily-ot-field > input,
.daily-ot-date-control input {
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
}

.daily-ot-date-control {
  position: relative;
  display: flex;
  align-items: center;
}

.daily-ot-date-control input {
  width: 100%;
  padding-right: 5px;
}

.daily-ot-date-control > span {
  position: absolute;
  right: 14px;
  color: var(--ot-muted);
  pointer-events: none;
}

.daily-ot-hours-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
}

.daily-ot-hours-control input {
  border-radius: 7px 0 0 7px;
}

.daily-ot-hours-control > span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ot-muted);
  background: #f8fafc;
  border: 1px solid var(--ot-border);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  font-size: 15px;
  font-weight: 500;
}

.daily-ot-date-stack {
  display: grid;
  gap: 6px;
}

.daily-ot-weekday {
  min-height: 16px;
  color: var(--ot-muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-ot-quick-dates {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
}

.daily-ot-search.is-disabled {
  background: #f8f7f4;
  cursor: not-allowed;
}

.daily-ot-search.is-disabled input {
  color: var(--ot-muted);
  cursor: not-allowed;
}

.daily-ot-delay-hours-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
}

.daily-ot-delay-copy-btn {
  width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ot-primary);
  background: rgba(0, 88, 79, 0.06);
  border: 1px solid rgba(0, 88, 79, 0.28);
  border-radius: 7px;
  cursor: pointer;
}

.daily-ot-delay-copy-btn:hover {
  background: rgba(0, 88, 79, 0.11);
}

.daily-ot-delay-copy-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-ot-date-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(0, 88, 79, 0.28);
  border-radius: 7px;
  background: rgba(0, 88, 79, 0.06);
  color: var(--ot-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.daily-ot-date-btn:hover {
  background: rgba(0, 88, 79, 0.11);
}

.daily-ot-field input:focus,
.daily-ot-search:focus-within,
.daily-ot-hours-input:focus,
.daily-ot-delay-fields input:focus,
.daily-ot-status-pill select:focus {
  border-color: rgba(0, 88, 79, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 88, 79, 0.1);
}

.daily-ot-field input[readonly] {
  color: var(--ot-muted);
  background: #f8f7f4;
  cursor: not-allowed;
}

.daily-ot-section {
  border: 1px solid var(--ot-border);
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.daily-ot-journey {
  padding: 8px 24px 8px;
  margin-bottom: 0;
}

.daily-ot-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.daily-ot-section-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.daily-ot-section-head p {
  margin: 0;
  color: var(--ot-muted);
  font-size: 15px;
  line-height: 1.35;
}

.daily-ot-section-tools {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.daily-ot-selected-count {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: var(--ot-primary);
  background: #f2f8f7;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.daily-ot-collapse-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  color: var(--ot-primary);
  background: #fff;
  border: 1px solid #d4dae0;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.daily-ot-collapse-btn svg {
  transform: rotate(180deg);
}

.daily-ot-search-row {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  background: #fff;
}

.daily-ot-search-row .daily-ot-search {
  position: relative;
  z-index: 2;
}

.daily-ot-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  color: var(--ot-muted);
  background: #fff;
}

.daily-ot-search input {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.daily-ot-search input::-webkit-search-cancel-button {
  appearance: none;
  display: none;
}

.daily-ot-search input::-ms-clear {
  display: none;
}

.daily-ot-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ot-muted);
  cursor: pointer;
}

.daily-ot-area-filter {
  min-width: 190px;
  display: grid;
  gap: 4px;
  color: var(--ot-muted);
  font-size: 11px;
  font-weight: 800;
}

.daily-ot-area-filter select {
  min-height: 36px;
  padding: 0 10px;
  color: var(--ot-text);
  background: #fff;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.daily-ot-area-filter select:focus {
  border-color: rgba(0, 88, 79, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 88, 79, 0.1);
}

.daily-ot-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.daily-ot-btn:hover {
  transform: translateY(-1px);
}

.daily-ot-btn:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.daily-ot-btn-light,
.daily-ot-btn-secondary {
  border: 1px solid var(--ot-border);
  background: #fff;
  color: var(--ot-text);
}

.daily-ot-btn-light:hover,
.daily-ot-btn-secondary:hover {
  background: #f8f7f4;
  border-color: #c9c3b4;
}

.daily-ot-btn-primary {
  border: 1px solid var(--ot-primary);
  background: var(--ot-primary);
  color: #fff;
}

.daily-ot-btn-primary:hover {
  background: var(--ot-primary-hover);
}

.daily-ot-btn-remove {
  border: 1px solid rgba(192, 57, 43, 0.28);
  background: #fff;
  color: var(--ot-danger);
}

.daily-ot-btn-remove:hover {
  background: #fef2f2;
  border-color: rgba(192, 57, 43, 0.45);
}

.daily-ot-results {
  margin: 12px 0 0;
  border: 1px solid var(--ot-border);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}

.daily-ot-results-scroll {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

.daily-ot-results-head,
.daily-ot-result {
  display: grid;
  grid-template-columns: 34px 1.02fr 1.45fr 1.15fr 0.95fr 1.1fr 58px;
  gap: 12px;
  align-items: center;
  padding: 0 18px;
}

.daily-ot-results-head {
  min-height: 44px;
  color: var(--ot-muted);
  font-size: 13px;
  font-weight: 800;
  background: #fafafa;
}

.daily-ot-result {
  min-height: 66px;
  border-top: 1px solid #efede7;
  font-size: 15px;
  cursor: pointer;
}

.daily-ot-result.is-selected {
  background: #edf7f6;
}

.daily-ot-result.is-concluded {
  color: var(--ot-muted);
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.78;
}

.daily-ot-result:hover {
  background: rgba(0, 88, 79, 0.045);
}

.daily-ot-result.is-concluded:hover {
  background: #f3f4f6;
}

.daily-ot-result.is-selected:hover {
  background: rgba(0, 88, 79, 0.09);
}

.daily-ot-result strong {
  display: block;
  font-size: 15px;
}

.daily-ot-result-check {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid #aeb6bf;
  border-radius: 4px;
  background: #fff;
}

.daily-ot-result.is-selected .daily-ot-result-check {
  background: var(--ot-primary);
  border-color: var(--ot-primary);
}

.daily-ot-result-check svg {
  width: 14px;
  height: 14px;
}

.daily-ot-result small {
  display: block;
  margin-top: 4px;
  color: var(--ot-text);
}

.daily-ot-result-desc,
.daily-ot-result-process,
.daily-ot-result-equipment,
.daily-ot-result-system {
  min-width: 0;
}

.daily-ot-result-process {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.daily-ot-result-action {
  display: flex;
  justify-content: flex-end;
}

.daily-ot-result-action-text {
  display: none;
}

.daily-ot-results-float-toggle {
  position: static;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--ot-primary);
  background: #fff;
  border: 1px solid rgba(0, 107, 99, 0.28);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.daily-ot-results-toggle-row {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: flex;
  justify-content: center;
  padding: 10px 36px 12px;
  margin-top: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 34%);
  pointer-events: none;
}

.daily-ot-results-toggle-row .daily-ot-results-float-toggle {
  pointer-events: auto;
}

.daily-ot-results-float-toggle:hover {
  background: #f2f8f7;
}

.daily-ot-results-float-toggle svg {
  width: 14px;
  height: 14px;
}

.daily-ot-result-closed {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.daily-ot-results-empty,
.daily-ot-results-hint {
  padding: 10px 12px;
  border-top: 1px solid #efede7;
  color: var(--ot-muted);
  font-size: 12px;
}

.daily-ot-results-info {
  padding: 9px 14px;
  color: #124a46;
  background: #edf7f6;
  border-bottom: 1px solid #d4e7e4;
  font-size: 12px;
  font-weight: 800;
}

.daily-ot-load-more-row {
  display: none;
  justify-content: center;
  padding: 10px 12px;
  border-top: 1px solid #efede7;
  background: #fbfaf7;
}

.daily-ot-results-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.daily-ot-results-table th,
.daily-ot-results-table td {
  padding: 10px 14px;
  border-top: 1px solid #efede7;
  text-align: left;
  vertical-align: middle;
}

.daily-ot-results-table thead th {
  color: var(--ot-muted);
  background: #fafafa;
  font-size: 12px;
  font-weight: 800;
}

.daily-ot-result-group {
  border-top: 1px solid #efede7;
  content-visibility: auto;
  contain-intrinsic-size: auto 46px;
}

.daily-ot-result-group:first-child {
  border-top: 0;
}

.daily-ot-result-group-toggle,
.daily-ot-result-equipment-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  color: var(--ot-text);
  background: #edf7f6;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.daily-ot-result-group-toggle > span:first-child,
.daily-ot-result-equipment-toggle > span:first-child {
  color: var(--ot-muted);
  transition: transform 160ms ease;
}

.daily-ot-result-group.is-expanded > .daily-ot-result-group-toggle > span:first-child,
.daily-ot-result-equipment.is-expanded > .daily-ot-result-equipment-toggle > span:first-child {
  transform: rotate(180deg);
}

.daily-ot-result-group-toggle strong,
.daily-ot-result-equipment-toggle strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.daily-ot-result-group-toggle em,
.daily-ot-result-equipment-toggle em {
  margin-left: auto;
  color: var(--ot-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.daily-ot-result-group-body {
  display: grid;
}

.daily-ot-result-equipment {
  border-top: 1px solid #e6ecec;
}

.daily-ot-result-equipment-toggle {
  min-height: 40px;
  padding-left: 38px;
  background: #fbfaf7;
  color: var(--ot-muted);
}

.daily-ot-result-check-col,
.daily-ot-result-check-cell {
  width: 44px;
  text-align: center;
}

.daily-ot-results-table th:nth-child(2),
.daily-ot-results-table td:nth-child(2) {
  width: 130px;
}

.daily-ot-results-table th:nth-child(4),
.daily-ot-results-table td:nth-child(4) {
  width: 130px;
}

.daily-ot-results-table th:nth-child(5),
.daily-ot-results-table td:nth-child(5) {
  width: 72px;
}

.daily-ot-results-table th:nth-child(6),
.daily-ot-results-table td:nth-child(6) {
  width: 72px;
  text-align: right;
}

.daily-ot-result-process-group td {
  padding: 11px 16px;
  color: #124a46;
  background: #edf7f6;
  font-size: 13px;
  font-weight: 800;
}

.daily-ot-result-process-group td {
  display: table-cell;
}

.daily-ot-result-process-group td span {
  margin-right: 8px;
}

.daily-ot-result-equipment-group td {
  padding: 8px 18px;
  color: var(--ot-muted);
  background: #fbfaf7;
  font-size: 12px;
  font-weight: 700;
}

.daily-ot-result-row {
  cursor: pointer;
}

.daily-ot-result-row:hover {
  background: rgba(0, 88, 79, 0.045);
}

.daily-ot-result-row.is-selected {
  background: #edf7f6;
}

.daily-ot-result-row.is-selected .daily-ot-result-check {
  color: #fff;
  background: var(--ot-primary);
  border-color: var(--ot-primary);
}

/* Assignment step overrides must stay after the legacy first-step mockup rules. */
.daily-ot-step.is-complete .daily-ot-step-number {
  color: #fff;
  border-color: transparent;
  background: transparent;
  box-shadow: 0 7px 16px rgba(0, 107, 99, 0.24);
}

.daily-ot-step.is-complete .daily-ot-step-number::before {
  opacity: 1;
}

.daily-ot-step-number .ti {
  font-size: 20px;
  line-height: 1;
}

.daily-ot-assignment-step {
  margin: 0 36px 16px;
}

.daily-ot-assignment-top {
  grid-template-columns: 1fr;
  gap: 18px;
}

.daily-ot-assignment-date-row {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.72fr);
  gap: 34px;
  align-items: start;
}

.daily-ot-assignment-selected {
  width: 100%;
  justify-self: center;
}

.daily-ot-assignment-selected-head {
  justify-content: center;
}

.daily-ot-assignment-selected-box {
  justify-content: center;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.daily-ot-assignment-chip {
  width: clamp(220px, 24vw, 320px);
  min-width: 220px;
  max-width: 320px;
  grid-template-columns: 18px minmax(0, 1fr) 28px;
  align-items: start;
  scroll-snap-align: center;
  cursor: pointer;
}

.daily-ot-assignment-chip:hover {
  border-color: rgba(0, 107, 99, 0.54);
  background: #fbffff;
}

.daily-ot-assignment-chip-grip {
  margin-top: 2px;
  color: var(--ot-muted);
}

.daily-ot-assignment-chip > div {
  min-width: 0;
}

.daily-ot-assignment-chip-text {
  display: block;
  min-width: 0;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.daily-ot-assignment-chip-text strong {
  display: inline;
}

.daily-ot-assignment-chip strong,
.daily-ot-assignment-chip span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.daily-ot-assignment-chip strong {
  line-height: 1.25;
}

.daily-ot-assignment-chip span {
  line-height: 1.28;
}

.daily-ot-assignment-chip button {
  flex: 0 0 auto;
}

.daily-ot-assignment-step .daily-ot-mechanics {
  display: grid;
}

.daily-ot-assignment-step .daily-ot-summary-section {
  display: block;
}

.daily-ot-summary-step {
  margin: 0 36px 16px;
}

.daily-ot-summary-step .daily-ot-summary-section {
  display: block;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
}

.daily-ot-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.daily-ot-summary-head .daily-ot-section-title {
  margin: 0;
  color: var(--ot-text);
  font-size: 20px;
  line-height: 1.15;
}

.daily-ot-summary-head p {
  margin: 8px 0 0;
  color: var(--ot-muted);
  font-size: 14px;
}

.daily-ot-summary-step .daily-ot-table-wrap {
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}

.daily-ot-summary-table {
  display: grid;
  min-width: 760px;
}

.daily-ot-summary-table.is-om {
  --daily-ot-summary-columns: 20% 40% 20% 20%;
}

.daily-ot-summary-table.is-omsg {
  --daily-ot-summary-columns: 15% 40% 12.5% 12.5% 20%;
}

.daily-ot-summary-grid-row {
  display: grid;
  grid-template-columns: var(--daily-ot-summary-columns);
  align-items: center;
}

.daily-ot-summary-grid-head {
  color: #4b5563;
  background: #fbfaf8;
  font-size: 13px;
  font-weight: 800;
}

.daily-ot-summary-cell {
  min-width: 0;
  padding: 14px 18px;
  font-size: 14px;
}

.daily-ot-summary-hours-col {
  text-align: center;
}

.daily-ot-summary-status-col {
  text-align: left;
}

.daily-ot-summary-toggle-row {
  cursor: pointer;
  border-top: 1px solid var(--ot-border);
}

.daily-ot-summary-toggle-row:hover {
  background: rgba(0, 107, 99, 0.055);
}

.daily-ot-summary-step .daily-ot-table .daily-ot-row-assigned {
  background-color: rgba(0, 107, 99, 0.08);
}

.daily-ot-summary-toggle-row.is-expanded {
  border-bottom-color: transparent;
}

.daily-ot-summary-detail-row {
  cursor: default;
  background: #fff;
  border-top: 1px solid var(--ot-border);
}

.daily-ot-summary-detail-row:hover {
  background: #fff;
}

.daily-ot-summary-detail {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
}

.daily-ot-summary-assignment {
  display: grid;
  grid-template-columns: 24px minmax(160px, 1fr) minmax(84px, auto) minmax(112px, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 107, 99, 0.14);
  border-radius: 7px;
  background: #f8fbfb;
}

.daily-ot-summary-assignment span {
  display: inline-flex;
  color: var(--ot-primary);
}

.daily-ot-summary-assignment > span:first-child {
  align-items: center;
  justify-content: center;
}

.daily-ot-summary-assignment svg {
  width: 18px;
  height: 18px;
}

.daily-ot-summary-assignment strong,
.daily-ot-summary-assignment em,
.daily-ot-summary-assignment small {
  min-width: 0;
  font-size: 13px;
  font-style: normal;
  line-height: 1.2;
}

.daily-ot-summary-assignment em {
  color: var(--ot-text);
  font-weight: 800;
  text-align: right;
}

.daily-ot-summary-assignment small {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.daily-ot-summary-assignment-status {
  justify-self: end;
}

.daily-ot-summary-assignment small.status-danger {
  color: var(--ot-danger);
}

.daily-ot-summary-assignment small.status-info {
  color: var(--ot-info);
}

.daily-ot-summary-assignment small.status-success {
  color: var(--ot-success);
}

.daily-ot-summary-assignment small.status-warning {
  color: var(--ot-warning);
}

.daily-ot-summary-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 170px;
  padding: 0 12px;
  border: 1px solid var(--ot-border);
  border-radius: 7px;
  color: #374151;
  background: #f9fafb;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}

.daily-ot-summary-status svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.daily-ot-summary-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

.daily-ot-summary-status.is-ready {
  color: var(--ot-primary);
  background: #eaf7f4;
  border-color: rgba(0, 107, 99, 0.2);
}

.daily-ot-summary-status.is-empty {
  color: #4b5563;
  background: #f4f5f7;
}

.daily-ot-summary-totals {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.daily-ot-summary-totals > div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 18px;
  border: 1px solid var(--ot-border);
  border-radius: 7px;
  background: #fff;
}

.daily-ot-summary-totals strong {
  color: var(--ot-text);
  font-size: 18px;
  line-height: 1.1;
}

.daily-ot-summary-totals span {
  color: var(--ot-muted);
  font-size: 13px;
}

.daily-ot-summary-totals .daily-ot-summary-total-title {
  color: var(--ot-text);
  font-size: 14px;
  font-weight: 800;
}

.daily-ot-summary-totals .is-success {
  background: #eef8f6;
  border-color: rgba(0, 107, 99, 0.18);
}

.daily-ot-summary-totals .is-success strong,
.daily-ot-summary-totals .is-success span {
  color: var(--ot-primary);
}

.daily-ot-summary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ot-border);
  color: var(--ot-muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .daily-ot-summary-step {
    margin: 0 14px 14px;
  }

  .daily-ot-summary-totals {
    grid-template-columns: 1fr;
  }

  .daily-ot-summary-status {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .daily-ot-summary-step {
    margin: 0 8px 12px;
  }

  .daily-ot-summary-step .daily-ot-summary-section {
    padding: 14px;
  }

  .daily-ot-summary-step .daily-ot-table-wrap {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
  }

  .daily-ot-summary-table {
    min-width: 0;
    gap: 12px;
  }

  .daily-ot-summary-grid-head {
    display: none;
  }

  .daily-ot-summary-grid-row {
    grid-template-columns: 1fr;
  }

  .daily-ot-summary-toggle-row {
    overflow: hidden;
    border: 1px solid var(--ot-border);
    border-radius: 8px;
    background: #fff;
  }

  .daily-ot-summary-toggle-row:hover {
    background: #fff;
  }

  .daily-ot-summary-step .daily-ot-table .daily-ot-row-assigned {
    background: #fff;
  }

  .daily-ot-summary-cell {
    display: grid;
    grid-template-columns: minmax(104px, 40%) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #edf1f3;
    font-size: 13px;
    text-align: right;
  }

  .daily-ot-summary-cell:first-child {
    border-top: 0;
  }

  .daily-ot-summary-cell::before {
    content: attr(data-label);
    color: var(--ot-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: left;
  }

  .daily-ot-summary-om-col,
  .daily-ot-summary-description-col,
  .daily-ot-summary-hours-col,
  .daily-ot-summary-status-col {
    text-align: right;
  }

  .daily-ot-summary-description-col {
    word-break: break-word;
  }

  .daily-ot-summary-status {
    justify-self: end;
    max-width: min(190px, 100%);
    min-height: 32px;
  }

  .daily-ot-summary-detail-row {
    margin-top: -4px;
    border: 1px solid var(--ot-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  .daily-ot-summary-detail {
    padding: 10px 12px 12px;
  }

  .daily-ot-summary-assignment {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .daily-ot-summary-assignment > span:first-child {
    display: none;
  }

  .daily-ot-summary-assignment strong,
  .daily-ot-summary-assignment em,
  .daily-ot-summary-assignment-status {
    display: grid;
    grid-template-columns: minmax(84px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-self: stretch;
    text-align: right;
  }

  .daily-ot-summary-assignment strong::before,
  .daily-ot-summary-assignment em::before,
  .daily-ot-summary-assignment-status::before {
    content: attr(data-label);
    color: var(--ot-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: left;
  }

  .daily-ot-summary-assignment small {
    justify-self: end;
  }
}

@media (max-width: 1100px) {
  .daily-ot-assignment-top {
    grid-template-columns: 1fr;
  }

  .daily-ot-assignment-selected {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .daily-ot-assignment-step {
    margin: 0 14px 14px;
  }

  .daily-ot-assignment-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .daily-ot-assignment-date-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .daily-ot-assignment-selected-box {
    justify-content: flex-start;
  }

  .daily-ot-assignment-chip {
    width: min(280px, 82vw);
    min-width: min(280px, 82vw);
    max-width: min(280px, 82vw);
  }
}

.daily-ot-om-tooltip {
  position: fixed;
  z-index: 7005;
  width: min(360px, calc(100vw - 24px));
  padding: 14px;
  color: #111827;
  background: #fff;
  border: 1px solid rgba(0, 107, 99, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
}

.daily-ot-om-tooltip.is-visible {
  opacity: 1;
}

.daily-ot-om-tooltip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ot-primary);
}

.daily-ot-om-tooltip-title strong {
  color: #111827;
  font-size: 14px;
}

.daily-ot-om-tooltip dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.daily-ot-om-tooltip dl > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
}

.daily-ot-om-tooltip dt {
  color: var(--ot-muted);
  font-size: 11px;
  font-weight: 800;
}

.daily-ot-om-tooltip dd {
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.daily-ot-assignment-step {
  margin: 0 36px 16px;
}

.daily-ot-assignment-step .daily-ot-mechanics {
  display: grid;
}

.daily-ot-assignment-step .daily-ot-summary-section {
  display: block;
}

@media (max-width: 1100px) {
  .daily-ot-assignment-top {
    grid-template-columns: 1fr;
  }

  .daily-ot-assignment-selected {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .daily-ot-assignment-step {
    margin: 0 14px 14px;
  }

  .daily-ot-assignment-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .daily-ot-assignment-selected-box {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-ot-assignment-chip {
    width: 100%;
    max-width: none;
  }
}

/* Final responsive overrides: keep these last in the file. */
@media (max-width: 1100px) {
  .daily-ot-card {
    display: block;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
  }

  .daily-ot-header,
  .daily-ot-body,
  .daily-ot-footer {
    flex: none;
  }

  .daily-ot-body {
    min-height: auto;
    overflow: visible;
  }

  .daily-ot-footer {
    position: static;
    bottom: auto;
    z-index: auto;
    margin-top: 0;
  }

  .daily-ot-selected:not(.is-expanded) .daily-ot-selected-list,
  .daily-ot-selected-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .daily-ot-selected-toggle {
    display: none;
  }

  .daily-ot-chip,
  .daily-ot-add-more-card {
    min-height: 64px;
    padding: 11px 12px;
  }
}

@media (max-width: 900px) {
  .daily-ot-header {
    gap: 14px;
    padding: 18px 14px 12px;
  }

  .daily-ot-header-top {
    align-items: center;
  }

  .daily-ot-header-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .daily-ot-step-summary {
    padding: 14px 14px 13px;
    margin: 0 14px 12px;
    border-radius: 12px;
  }

  .daily-ot-step-summary > div:first-child {
    gap: 4px;
    margin-bottom: 9px;
  }

  .daily-ot-step-summary-label {
    font-size: 12px;
  }

  .daily-ot-step-summary-title {
    font-size: 15px;
    line-height: 1.2;
  }

  .daily-ot-step-progress {
    gap: 9px;
    margin-bottom: 9px;
  }

  .daily-ot-step-progress-track {
    height: 8px;
  }

  .daily-ot-step-progress-text {
    min-width: 44px;
    font-size: 12px;
  }

  .daily-ot-step-summary-toggle {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  .daily-ot-steps {
    gap: 8px;
  }

  .daily-ot-step {
    gap: 10px;
  }

  .daily-ot-step-number {
    width: 34px;
    height: 34px;
  }

  .daily-ot-step-text strong {
    font-size: 13px;
  }

  .daily-ot-step-text em {
    font-size: 12px;
    white-space: normal;
  }

  .daily-ot-top-grid {
    gap: 12px;
    margin: 0 14px;
  }

  .daily-ot-journey {
    margin: 0 14px 14px;
    padding: 16px 14px 18px;
  }

  .daily-ot-section-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .daily-ot-section-head h3 {
    font-size: 18px;
  }

  .daily-ot-section-head p {
    font-size: 13px;
  }

  .daily-ot-search-row {
    padding: 8px 0;
  }

  .daily-ot-footer {
    padding: 16px 14px max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .daily-ot-selected:not(.is-expanded) .daily-ot-selected-list,
  .daily-ot-selected-list {
    grid-template-columns: 1fr;
  }
}

/* Final responsive overrides: keep these last in the file. */
@media (max-width: 1100px) {
  .daily-ot-card {
    display: block;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
  }

  .daily-ot-header,
  .daily-ot-body,
  .daily-ot-footer {
    flex: none;
  }

  .daily-ot-body {
    min-height: auto;
    overflow: visible;
  }

  .daily-ot-footer {
    position: static;
    bottom: auto;
    z-index: auto;
    margin-top: 0;
  }

  .daily-ot-selected:not(.is-expanded) .daily-ot-selected-list,
  .daily-ot-selected-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .daily-ot-selected-toggle {
    display: none;
  }

  .daily-ot-chip,
  .daily-ot-add-more-card {
    min-height: 64px;
    padding: 11px 12px;
  }
}

@media (max-width: 900px) {
  .daily-ot-header {
    gap: 14px;
    padding: 18px 14px 12px;
  }

  .daily-ot-header-top {
    align-items: center;
  }

  .daily-ot-header-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .daily-ot-step-summary {
    padding: 14px 14px 13px;
    margin: 0 14px 12px;
    border-radius: 12px;
  }

  .daily-ot-step-summary > div:first-child {
    gap: 4px;
    margin-bottom: 9px;
  }

  .daily-ot-step-summary-label {
    font-size: 12px;
  }

  .daily-ot-step-summary-title {
    font-size: 15px;
    line-height: 1.2;
  }

  .daily-ot-step-progress {
    gap: 9px;
    margin-bottom: 9px;
  }

  .daily-ot-step-progress-track {
    height: 8px;
  }

  .daily-ot-step-progress-text {
    min-width: 44px;
    font-size: 12px;
  }

  .daily-ot-step-summary-toggle {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  .daily-ot-steps {
    gap: 8px;
  }

  .daily-ot-step {
    gap: 10px;
  }

  .daily-ot-step-number {
    width: 34px;
    height: 34px;
  }

  .daily-ot-step-text strong {
    font-size: 13px;
  }

  .daily-ot-step-text em {
    font-size: 12px;
    white-space: normal;
  }

  .daily-ot-top-grid {
    gap: 12px;
    margin: 0 14px;
  }

  .daily-ot-journey {
    margin: 0 14px 14px;
    padding: 16px 14px 18px;
  }

  .daily-ot-section-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .daily-ot-section-head h3 {
    font-size: 18px;
  }

  .daily-ot-section-head p {
    font-size: 13px;
  }

  .daily-ot-search-row {
    padding: 8px 0;
  }

  .daily-ot-footer {
    padding: 16px 14px max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .daily-ot-selected:not(.is-expanded) .daily-ot-selected-list,
  .daily-ot-selected-list {
    grid-template-columns: 1fr;
  }
}

/* Responsive modal flow and compact planning stepper. */
@media (max-width: 1100px) {
  .daily-ot-card {
    display: block !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
  }

  .daily-ot-header,
  .daily-ot-body,
  .daily-ot-footer {
    flex: none !important;
  }

  .daily-ot-body {
    min-height: auto !important;
    overflow: visible !important;
  }

  .daily-ot-footer {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    margin-top: 0 !important;
  }

  .daily-ot-selected:not(.is-expanded) .daily-ot-selected-list,
  .daily-ot-selected-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .daily-ot-selected-toggle {
    display: none;
  }

  .daily-ot-chip,
  .daily-ot-add-more-card {
    min-height: 64px !important;
    padding: 11px 12px !important;
  }
}

@media (max-width: 900px) {
  .daily-ot-header {
    gap: 14px !important;
    padding: 18px 14px 12px !important;
  }

  .daily-ot-header-top {
    align-items: center;
  }

  .daily-ot-header-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .daily-ot-step-summary {
    padding: 14px 14px 13px !important;
    margin: 0 14px 12px !important;
    border-radius: 12px !important;
  }

  .daily-ot-step-summary > div:first-child {
    gap: 4px !important;
    margin-bottom: 9px !important;
  }

  .daily-ot-step-summary-label {
    font-size: 12px !important;
  }

  .daily-ot-step-summary-title {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .daily-ot-step-progress {
    gap: 9px !important;
    margin-bottom: 9px !important;
  }

  .daily-ot-step-progress-track {
    height: 8px !important;
  }

  .daily-ot-step-progress-text {
    min-width: 44px !important;
    font-size: 12px !important;
  }

  .daily-ot-step-summary-toggle {
    min-height: 36px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  .daily-ot-steps {
    gap: 8px !important;
  }

  .daily-ot-step {
    gap: 10px !important;
  }

  .daily-ot-step-number {
    width: 34px !important;
    height: 34px !important;
  }

  .daily-ot-step-text strong {
    font-size: 13px;
  }

  .daily-ot-step-text em {
    font-size: 12px;
    white-space: normal;
  }

  .daily-ot-top-grid {
    gap: 12px;
    margin: 0 14px;
  }

  .daily-ot-journey {
    margin: 0 14px 14px !important;
    padding: 16px 14px 18px !important;
  }

  .daily-ot-section-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .daily-ot-section-head h3 {
    font-size: 18px;
  }

  .daily-ot-section-head p {
    font-size: 13px;
  }

  .daily-ot-search-row {
    padding: 8px 0;
  }

  .daily-ot-footer {
    padding: 16px 14px max(16px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 560px) {
  .daily-ot-selected:not(.is-expanded) .daily-ot-selected-list,
  .daily-ot-selected-list {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile/tablet fixes for result tables, normal modal flow, and alert actions. */
.daily-ot-btn-alert {
  border: 1px solid rgba(192, 57, 43, 0.34);
  background: #fef2f2;
  color: var(--ot-danger);
}

.daily-ot-btn-alert:hover {
  background: #fee2e2;
  border-color: rgba(192, 57, 43, 0.58);
}

.daily-ot-footer .daily-ot-btn-alert {
  min-width: 118px;
  min-height: 48px;
}

@media (max-width: 1100px) {
  .daily-ot-card {
    display: block !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
  }

  .daily-ot-body {
    min-height: auto !important;
    overflow: visible !important;
  }

  .daily-ot-footer {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    margin-top: 0 !important;
  }

  .daily-ot-footer .daily-ot-btn-alert {
    width: 100%;
    min-width: 0;
  }

  .daily-ot-results,
  .daily-ot-result-group-body,
  .daily-ot-result-equipment {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  .daily-ot-results-table {
    display: table !important;
    width: 100% !important;
    min-width: 640px !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }

  .daily-ot-results-table thead {
    display: table-header-group !important;
  }

  .daily-ot-results-table tbody {
    display: table-row-group !important;
  }

  .daily-ot-results-table tr {
    display: table-row !important;
    width: auto !important;
  }

  .daily-ot-results-table th,
  .daily-ot-results-table td {
    display: table-cell !important;
    width: auto !important;
    padding: 9px 10px !important;
    border-top: 1px solid #efede7 !important;
    vertical-align: middle !important;
    text-align: left !important;
  }

  .daily-ot-results-table td::before {
    content: none !important;
  }

  .daily-ot-result-row {
    padding: 0 !important;
  }

  .daily-ot-result-check-col,
  .daily-ot-result-check-cell {
    width: 42px !important;
    text-align: center !important;
  }

  .daily-ot-results-table th:nth-child(2),
  .daily-ot-results-table td:nth-child(2) {
    width: 96px !important;
  }

  .daily-ot-results-table th:nth-child(4),
  .daily-ot-results-table td:nth-child(4) {
    width: 92px !important;
  }

  .daily-ot-results-table th:nth-child(5),
  .daily-ot-results-table td:nth-child(5) {
    width: 52px !important;
    text-align: center !important;
  }

  .daily-ot-results-table th:nth-child(6),
  .daily-ot-results-table td:nth-child(6) {
    width: 56px !important;
    text-align: center !important;
  }

  .daily-ot-result-id strong,
  .daily-ot-result-system strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  .daily-ot-result-desc {
    font-size: 12px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .daily-ot-result-action {
    justify-content: center !important;
  }

  .daily-ot-result-action .daily-ot-btn {
    width: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }

  .daily-ot-result-action-text {
    display: none !important;
  }

  .daily-ot-result-row.is-selected .daily-ot-result-action .daily-ot-btn {
    color: var(--ot-danger) !important;
    border-color: rgba(192, 57, 43, 0.42) !important;
    background: #fff !important;
  }
}

@media (max-width: 560px) {
  .daily-ot-results-table {
    min-width: 580px !important;
  }

  .daily-ot-results-table th,
  .daily-ot-results-table td {
    padding: 8px !important;
  }
}

.daily-ot-result-row.is-selected:hover {
  background: rgba(0, 88, 79, 0.09);
}

.daily-ot-result-row.is-concluded {
  color: var(--ot-muted);
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.78;
}

.daily-ot-result-row.is-concluded:hover {
  background: #f3f4f6;
}

.daily-ot-result-row .daily-ot-result-id strong,
.daily-ot-result-row .daily-ot-result-system strong {
  font-size: 13px;
}

.daily-ot-result-hours {
  font-weight: 800;
}

.daily-ot-result-check .ti,
.daily-ot-result-action .ti,
.daily-ot-results-float-toggle .ti {
  font-size: 18px;
  line-height: 1;
}

.daily-ot-result-row.is-selected .daily-ot-result-action .daily-ot-btn {
  color: var(--ot-danger);
  border-color: rgba(192, 57, 43, 0.38);
  background: #fff;
}

.daily-ot-result-row.is-selected .daily-ot-result-action .daily-ot-btn:hover {
  background: #fef2f2;
  border-color: rgba(192, 57, 43, 0.56);
}

.daily-ot-result-row.is-selected .daily-ot-result-check {
  color: #fff;
  background: var(--ot-primary);
  border-color: var(--ot-primary);
}

@media (max-width: 900px) {
  .daily-ot-results-toggle-row {
    padding-right: 14px;
    padding-left: 14px;
  }
}

.daily-ot-results-hint {
  display: flex;
  align-items: center;
  gap: 7px;
}

.daily-ot-selected-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.daily-ot-selected-toggle {
  display: none;
}

.daily-ot-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-areas:
    "content remove"
    "hours remove";
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  background: #fff;
}

.daily-ot-chip > div {
  grid-area: content;
  min-width: 0;
}

.daily-ot-chip strong {
  color: var(--ot-text);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-ot-chip span {
  display: -webkit-box;
  margin-top: 3px;
  color: var(--ot-muted);
  font-size: 11px;
  font-weight: 700;

  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.daily-ot-chip em {
  grid-area: hours;
  justify-self: start;
  color: var(--ot-text);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.daily-ot-chip button {
  grid-area: remove;
  justify-self: end;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ot-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ot-muted);
  cursor: pointer;
}

.daily-ot-empty-box {
  min-height: 126px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-top: 12px;
  border: 1px dashed var(--ot-border);
  border-radius: 9px;
  color: var(--ot-muted);
  text-align: center;
  background: #fff;
}

.daily-ot-empty-box div {
  color: #b8b3a7;
  font-size: 26px;
}

.daily-ot-empty-box strong {
  color: var(--ot-text);
  font-size: 13px;
}

.daily-ot-empty-box span {
  font-size: 12px;
}

.daily-ot-mechanics {
  display: grid;
  gap: 10px;
}

.daily-ot-mechanic {
  border: 1px solid var(--ot-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.daily-ot-mechanic-head {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--ot-border);
  background: #fff;
}

.daily-ot-mechanic-title,
.daily-ot-hours-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-ot-mechanic-title {
  color: var(--ot-primary);
}

.daily-ot-mechanic-title strong {
  color: var(--ot-text);
  font-size: 13px;
}

.daily-ot-hours-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f5df;
  color: #4c8a22;
  font-size: 11px;
  font-weight: 800;
}

.daily-ot-hours-badge.danger {
  background: #fdecea;
  color: var(--ot-danger);
}

.daily-ot-hours-badge.warning {
  background: #fff7ed;
  color: #b45309;
}

.daily-ot-hours-left {
  color: var(--ot-muted);
  font-size: 11px;
}

.daily-ot-mechanic-pause-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #fffafa;
  border: 1px solid #fee2e2;
  border-radius: 6px;
  margin-left: 8px;
}

.daily-ot-pause-icon {
  color: #ef4444;
  width: 14px;
  height: 14px;
}
.daily-ot-pause-icon svg {
  width: 100%;
  height: 100%;
}

.daily-ot-pause-text {
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
}

/* Switch Styles */
.daily-ot-switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 16px;
  margin-left: 4px;
}

.daily-ot-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.daily-ot-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fca5a5;
  transition: .4s;
  border-radius: 16px;
}

.daily-ot-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.daily-ot-switch input:checked + .daily-ot-slider {
  background-color: #ef4444;
}

.daily-ot-switch input:checked + .daily-ot-slider:before {
  transform: translateX(12px);
}

/* Summary Table section */
.daily-ot-summary-section {
  padding: 24px;
  background: #f8fafc;
  border-top: 1px solid var(--ot-border);
}

.daily-ot-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ot-primary);
  margin-bottom: 12px;
}

.daily-ot-summary-section .daily-ot-table-wrap {
  background: #fff;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.daily-ot-summary-section .daily-ot-table td,
.daily-ot-summary-section .daily-ot-table th {
  padding: 10px 12px;
}

.daily-ot-summary-section .daily-ot-table tr.daily-ot-row-assigned {
  background-color: rgba(0, 88, 79, 0.08); /* same as --ot-primary but with opacity */
}

.daily-ot-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.daily-ot-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.daily-ot-table th,
.daily-ot-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #efede7;
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}

.daily-ot-table th {
  color: var(--ot-muted);
  font-size: 11px;
  font-weight: 800;
  background: #fbfaf7;
}

.daily-ot-mechanic-badges-container {
  position: relative;
}

.daily-ot-mechanic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0, 88, 79, 0.03);
  border-bottom: 1px solid var(--ot-border);
  min-height: 48px;
}

.daily-ot-badges-empty {
  font-size: 11px;
  color: var(--ot-muted);
  font-style: italic;
  display: flex;
  align-items: center;
}

.daily-ot-badges-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 70, 67, 0.5);
  background: color-mix(in srgb, var(--color-main, var(--ot-primary)) 85%, transparent);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-on-main, #fff);
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--ot-border);
  z-index: 10;
}

.daily-ot-badges-overlay svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

.daily-ot-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px 10px;
  background: #fff;
  border: 1px dashed var(--ot-primary);
  color: var(--ot-primary);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 150ms ease;
}

.daily-ot-badge-btn:hover {
  background: var(--ot-primary);
  color: #fff;
}

.daily-ot-table th:nth-child(1),
.daily-ot-table td:nth-child(1) {
  width: 150px;
  text-align: left;
}

.daily-ot-table th:nth-child(2),
.daily-ot-table td:nth-child(2) {
  width: auto;
}

.daily-ot-table th:nth-child(3),
.daily-ot-table td:nth-child(3) {
  width: 180px;
}

.daily-ot-table th:nth-child(4),
.daily-ot-table td:nth-child(4) {
  width: 130px;
  text-align: center;
}

.daily-ot-table th:nth-child(5),
.daily-ot-table td:nth-child(5) {
  width: 50px;
  text-align: center;
}

.daily-ot-btn-sm {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.daily-ot-assignment-row.is-inactive {
  color: var(--ot-muted);
  background: #fff;
}

.daily-ot-assignment-row.is-active {
  background: rgba(0, 88, 79, 0.075);
}

.daily-ot-assignment-row.is-active td {
  border-bottom-color: rgba(0, 88, 79, 0.12);
}

.daily-ot-assignment-row.is-blocked {
  color: var(--ot-muted);
  background: #f8f7f4;
}

.daily-ot-assignment-row.is-blocked td {
  opacity: 0.68;
}

.daily-ot-acum-empty {
  color: var(--ot-muted);
}

.daily-ot-hours-input {
  width: 94px;
  min-height: 28px;
  padding: 0 8px;
  text-align: center;
}

.daily-ot-hours-input.is-over-limit {
  border-color: var(--ot-danger);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.daily-ot-status-pill {
  width: min(150px, 100%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  min-height: 30px;
  border: 1px solid var(--ot-border);
  border-radius: 7px;
  background: #fff;
}

.daily-ot-status-pill select {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  box-shadow: none;
  font-weight: 700;
  background: transparent;
}

.daily-ot-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--ot-info);
}

.daily-ot-dot.info {
  background: var(--ot-info);
}

.daily-ot-dot.success {
  background: var(--ot-success);
}

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

.daily-ot-dot.warning {
  background: var(--ot-warning);
}

.daily-ot-delay-row td {
  background: #fff8f6;
  border-bottom-color: #eaded8;
}

.daily-ot-observation-row td {
  background: rgba(0, 88, 79, 0.055);
  border-bottom-color: rgba(0, 88, 79, 0.12);
}

.daily-ot-observation-row > td:first-child {
  background: rgba(0, 88, 79, 0.055);
}

.daily-ot-observation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--ot-primary);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.daily-ot-observation-toggle svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.daily-ot-observation-row.is-expanded .daily-ot-observation-toggle svg {
  transform: rotate(180deg);
}

.daily-ot-observation-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 88, 79, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.daily-ot-observation-panel label {
  display: grid;
  gap: 8px;
  color: var(--ot-text);
  font-size: 12px;
  font-weight: 700;
}

.daily-ot-observation-panel textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 10px 12px;
  color: var(--ot-text);
  background: #fff;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.daily-ot-observation-panel textarea:focus {
  border-color: rgba(0, 88, 79, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 88, 79, 0.1);
}

.daily-ot-observation-panel small {
  display: block;
  margin-top: 6px;
  color: var(--ot-muted);
  font-size: 11px;
}

.daily-ot-delay-fields {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: end;
}

.daily-ot-empty-row td {
  padding: 16px 10px;
  border-bottom: 0;
}

.daily-ot-empty-row div {
  min-height: 54px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--ot-muted);
  border: 1px dashed #ded9cf;
  border-radius: 7px;
  font-size: 12px;
}

.daily-ot-empty-row svg {
  color: #b8b3a7;
  font-size: 22px;
}

.daily-ot-mechanic-actions {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
}

.daily-ot-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 8px 5% 8px;
  border-top: 1px solid var(--ot-border);
  background: #fff;
}

.daily-ot-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.daily-ot-feedback {
  min-height: 1px;
}

.daily-ot-errors,
.daily-ot-notice {
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
}

.daily-ot-errors {
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.daily-ot-notice {
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.daily-ot-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 16, 14, 0.5);
}

.daily-ot-alert {
  width: min(420px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 18px;
  color: var(--ot-text);
  background: #fff;
  border: 1px solid rgba(216, 212, 202, 0.9);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  font-family: var(--font-body, "DM Sans", "Segoe UI", sans-serif);
}

.daily-ot-alert svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-ot-alert-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.daily-ot-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #991b1b;
  background: #fef2f2;
  border-radius: 50%;
}

.daily-ot-alert h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.2;
}

.daily-ot-alert p {
  margin: 0;
  color: var(--ot-muted);
  font-size: 13px;
  line-height: 1.4;
}

.daily-ot-alert-list {
  display: grid;
  gap: 7px;
  max-height: 240px;
  overflow: auto;
  padding: 10px 12px;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.daily-ot-alert-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.daily-ot-exit-confirm {
  width: min(360px, 100%);
}

.daily-ot-exit-actions {
  gap: 10px;
}

@media (max-width: 900px) {
  .daily-ot-overlay {
    align-items: stretch;
    padding: 0;
  }

  .daily-ot-card {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .daily-ot-body,
  .daily-ot-header,
  .daily-ot-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .daily-ot-top-grid,
  .daily-ot-search-row,
  .daily-ot-footer {
    grid-template-columns: 1fr;
  }

  .daily-ot-selected-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-ot-selected {
    margin-top: 12px;
  }

  .daily-ot-selected-toggle {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    color: var(--ot-text);
    background: #fff;
    border: 1px solid var(--ot-border);
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .daily-ot-selected-toggle svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
  }

  .daily-ot-selected.is-expanded .daily-ot-selected-toggle svg {
    transform: rotate(180deg);
  }

  .daily-ot-selected:not(.is-expanded) .daily-ot-selected-list {
    display: none;
  }

  .daily-ot-alert-overlay {
    align-items: center;
    padding: 14px;
  }

  .daily-ot-alert {
    width: min(420px, 100%);
    max-height: calc(100dvh - 28px);
  }

  .daily-ot-alert-list {
    max-height: calc(100dvh - 230px);
  }

  .daily-ot-results-head {
    display: none;
  }

  .daily-ot-result {
    grid-template-columns: minmax(76px, 0.85fr) minmax(0, 1.25fr) minmax(82px, 0.9fr);
    grid-template-areas:
      "id desc equipment"
      "process system action";
    gap: 9px 12px;
    align-items: start;
    padding: 12px;
  }

  .daily-ot-result-id {
    grid-area: id;
  }

  .daily-ot-result-desc {
    grid-area: desc;
  }

  .daily-ot-result-equipment {
    grid-area: equipment;
  }

  .daily-ot-result-process {
    grid-area: process;
  }

  .daily-ot-result-system {
    grid-area: system;
  }

  .daily-ot-result-action {
    grid-area: action;
    justify-content: flex-end;
  }

  .daily-ot-result-id strong,
  .daily-ot-result-system strong {
    font-size: 12px;
  }

  .daily-ot-result-desc,
  .daily-ot-result-process,
  .daily-ot-result-equipment,
  .daily-ot-result-system {
    font-size: 11px;
    line-height: 1.3;
  }

.daily-ot-result-action .daily-ot-btn {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: #cfd5dc;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  font-size: 18px;
}

.daily-ot-result.is-selected .daily-ot-result-action .daily-ot-btn {
  color: var(--ot-primary);
  border-color: var(--ot-primary);
}

.daily-ot-result-row.is-selected .daily-ot-result-action .daily-ot-btn {
  color: var(--ot-primary);
  border-color: var(--ot-primary);
}

.daily-ot-result-action .daily-ot-btn svg {
  width: 18px;
  height: 18px;
}

.daily-ot-results-hint svg {
  color: var(--ot-muted);
}

.daily-ot-results-empty,
.daily-ot-results-hint {
  min-height: 46px;
  padding: 0 18px;
  font-size: 13px;
}

.daily-ot-selected {
  margin-top: 22px;
}

.daily-ot-selected-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 0;
}

.daily-ot-selected-toggle {
  display: none;
}

.daily-ot-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  grid-template-areas: "content remove";
  align-items: start;
  column-gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.daily-ot-chip strong {
  display: inline;
  font-size: 17px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.daily-ot-chip span {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.daily-ot-chip-text {
  margin-top: 0;
}

.daily-ot-chip em {
  display: none;
}

.daily-ot-chip button {
  width: 38px;
  height: 38px;
  color: #111827;
  background: #f5f7f9;
  border: 0;
}

.daily-ot-add-more-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon sub";
  align-items: center;
  column-gap: 12px;
  padding: 14px 18px;
  color: var(--ot-primary);
  background: #fcffff;
  border: 1px dashed rgba(0, 107, 99, 0.45);
  border-radius: 8px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.daily-ot-add-more-card > span {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dff3ef;
  border-radius: 999px;
  font-size: 20px;
}

.daily-ot-add-more-card strong {
  grid-area: title;
  font-size: 15px;
}

.daily-ot-add-more-card em {
  grid-area: sub;
  color: var(--ot-primary);
  font-size: 14px;
  font-style: normal;
}

.daily-ot-empty-box {
  display: none;
}

.daily-ot-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 8px 36px 8px;
  border-top: 1px solid var(--ot-border);
  background: #fff;
}

.daily-ot-feedback {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-height: 1px;
}

.daily-ot-autosave {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 14px;
}

.daily-ot-autosave svg {
  color: #16833a;
}

.daily-ot-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.daily-ot-footer .daily-ot-btn-primary {
  min-height: 48px;
}

.daily-ot-footer .daily-ot-btn-secondary {
  min-width: 118px;
  min-height: 48px;
}

/*
  The assignment and summary steps stay in the module for data flow, but this
  visual pass intentionally hides them to match the current mockup.
*/
.daily-ot-mechanics,
.daily-ot-summary-section {
  display: none;
}

/* Legacy selected styles below are kept for older states; the declarations
   above intentionally override them for the new first-step layout. */

.daily-ot-result-action .daily-ot-btn {
  min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }

  .daily-ot-result-action-text {
    display: inline;
  }

  .daily-ot-mechanic-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
  }

  .daily-ot-table-wrap {
    width: 100%;
    overflow: visible;
  }

  .daily-ot-table,
  .daily-ot-table thead,
  .daily-ot-table tbody,
  .daily-ot-table tr,
  .daily-ot-table th,
  .daily-ot-table td {
    display: block;
    width: 100%;
  }

  .daily-ot-table th:nth-child(n),
  .daily-ot-table td:nth-child(n) {
    width: 100%;
    text-align: left;
  }

  .daily-ot-table {
    border-collapse: separate;
    table-layout: auto;
  }

  .daily-ot-table thead {
    display: none;
  }

  .daily-ot-table tbody {
    display: grid;
    gap: 10px;
  }

  .daily-ot-assignment-row {
    padding: 10px 12px;
    border: 1px solid #efede7;
    border-radius: 8px;
    background: #fff;
  }

  .daily-ot-assignment-row.is-active {
    border-color: rgba(0, 88, 79, 0.2);
  }

  .daily-ot-assignment-row.is-blocked {
    background: #f8f7f4;
  }

  .daily-ot-table .daily-ot-assignment-row td {
    display: grid;
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 34px;
    padding: 7px 0;
    border-bottom: 1px solid #f1eee7;
    text-align: left;
  }

  .daily-ot-table .daily-ot-assignment-row td:last-child {
    border-bottom: 0;
  }

  .daily-ot-table .daily-ot-assignment-row td::before {
    content: attr(data-label);
    color: var(--ot-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
  }

  .daily-ot-action-col {
    justify-content: flex-end;
  }

  .daily-ot-status-pill {
    width: 100%;
    max-width: 220px;
  }

  .daily-ot-hours-input {
    justify-self: start;
    width: min(120px, 100%);
  }

  .daily-ot-delay-row {
    display: block;
    padding: 10px 12px;
    border: 1px solid #eaded8;
    border-radius: 8px;
    background: #fff8f6;
  }

  .daily-ot-delay-row td {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }

  .daily-ot-delay-row td:first-child {
    display: none;
  }

  .daily-ot-delay-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .daily-ot-observation-row {
    display: block;
    padding: 0 12px 12px;
    border: 1px solid rgba(0, 88, 79, 0.2);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(0, 88, 79, 0.055);
    margin-top: -10px;
  }

  .daily-ot-observation-row td {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }

  .daily-ot-observation-row td:first-child {
    display: none;
  }

  .daily-ot-observation-toggle {
    padding: 10px 0 2px;
  }

  .daily-ot-observation-panel {
    margin-top: 8px;
  }

  .daily-ot-empty-row {
    display: block;
  }

  .daily-ot-empty-row td {
    display: block;
    width: 100%;
  }

  .daily-ot-footer-actions {
    width: 100%;
  }

  .daily-ot-footer-actions .daily-ot-btn {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .daily-ot-selected-list,
  .daily-ot-delay-fields {
    grid-template-columns: 1fr;
  }

  .daily-ot-header h2 {
    font-size: 18px;
  }

  .daily-ot-footer-actions {
    flex-direction: column-reverse;
  }
}

/* Final mockup overrides: first planning step only. */
.daily-ot-result-action .daily-ot-btn {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: #cfd5dc;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  font-size: 18px;
}

.daily-ot-result.is-selected .daily-ot-result-action .daily-ot-btn {
  color: var(--ot-primary);
  border-color: var(--ot-primary);
}

.daily-ot-result-row.is-selected .daily-ot-result-action .daily-ot-btn {
  color: var(--ot-primary);
  border-color: var(--ot-primary);
}

.daily-ot-result-action .daily-ot-btn svg {
  width: 18px;
  height: 18px;
}

.daily-ot-results-empty,
.daily-ot-results-hint {
  min-height: 46px;
  padding: 0 18px;
  font-size: 13px;
}

.daily-ot-selected {
  margin-top: 22px;
}

.daily-ot-selected-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 0;
}

.daily-ot-selected-toggle {
  display: none;
}

.daily-ot-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  grid-template-areas: "content remove";
  align-items: center;
  column-gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.daily-ot-chip strong {
  font-size: 17px;
}

.daily-ot-chip span {
  margin-top: 5px;
  font-size: 14px;
}

.daily-ot-chip em {
  display: none;
}

.daily-ot-chip button {
  width: 38px;
  height: 38px;
  color: #111827;
  background: #f5f7f9;
  border: 0;
}

.daily-ot-add-more-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon sub";
  align-items: center;
  column-gap: 12px;
  padding: 14px 18px;
  color: var(--ot-primary);
  background: #fcffff;
  border: 1px dashed rgba(0, 107, 99, 0.45);
  border-radius: 8px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.daily-ot-add-more-card > span {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dff3ef;
  border-radius: 999px;
  font-size: 20px;
}

.daily-ot-add-more-card strong {
  grid-area: title;
  font-size: 15px;
}

.daily-ot-add-more-card em {
  grid-area: sub;
  color: var(--ot-primary);
  font-size: 14px;
  font-style: normal;
}

.daily-ot-empty-box {
  display: none;
}

.daily-ot-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 8px 36px 8px;
  border-top: 1px solid var(--ot-border);
  background: #fff;
}

.daily-ot-feedback {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-height: 1px;
}

.daily-ot-autosave {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 14px;
}

.daily-ot-autosave svg {
  color: #16833a;
}

.daily-ot-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.daily-ot-footer .daily-ot-btn-primary {
  min-height: 48px;
}

.daily-ot-footer .daily-ot-btn-secondary {
  min-width: 118px;
  min-height: 48px;
}

.daily-ot-mechanics,
.daily-ot-summary-section {
  display: none;
}

.daily-ot-step-summary {
  display: none;
}

@media (max-width: 900px) {
  .daily-ot-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .daily-ot-step-line {
    display: none;
  }

  .daily-ot-section-head,
  .daily-ot-section-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-ot-selected-list {
    grid-template-columns: 1fr;
  }

  .daily-ot-footer {
    grid-template-columns: 1fr;
  }

  .daily-ot-feedback {
    justify-content: flex-start;
  }

  .daily-ot-footer .daily-ot-btn-primary,
  .daily-ot-footer .daily-ot-btn-secondary {
    width: 100%;
    min-width: 0;
  }
}

/* Structural sizing: make header/body/footer fill the fixed-height card. */
.daily-ot-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.daily-ot-header,
.daily-ot-footer {
  flex: 0 0 auto;
}

.daily-ot-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.daily-ot-footer {
  margin-top: auto;
}

@media (max-width: 900px) {
  .daily-ot-card {
    height: 100vh;
    max-height: 100vh;
  }
}

/* Search results: full-height natural flow with sticky filtering. */
.daily-ot-search-row {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 10px 0;
  background: #fff;
  box-shadow: 0 1px 0 var(--ot-border);
}

.daily-ot-journey {
  overflow: visible;
}

.daily-ot-results,
.daily-ot-results-scroll {
  max-height: none;
  overflow: visible;
}

.daily-ot-results-table {
  min-width: 0;
}

.daily-ot-load-more-row {
  display: none;
}

@media (max-width: 700px) {
  .daily-ot-result-group-toggle,
  .daily-ot-result-equipment-toggle {
    align-items: flex-start;
    min-height: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .daily-ot-result-equipment-toggle {
    padding-left: 18px;
  }

  .daily-ot-result-group-toggle strong,
  .daily-ot-result-equipment-toggle strong {
    white-space: normal;
  }

  .daily-ot-result-group-toggle em,
  .daily-ot-result-equipment-toggle em {
    margin-left: 0;
  }

  .daily-ot-results-table,
  .daily-ot-results-table thead,
  .daily-ot-results-table tbody,
  .daily-ot-results-table tr,
  .daily-ot-results-table td {
    display: block;
    width: 100%;
  }

  .daily-ot-results-table thead {
    display: none;
  }

  .daily-ot-result-row {
    padding: 10px 12px;
    border-top: 1px solid #efede7;
  }

  .daily-ot-results-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border-top: 0;
    text-align: left;
  }

  .daily-ot-results-table td::before {
    content: attr(data-label);
    color: var(--ot-muted);
    font-size: 11px;
    font-weight: 800;
  }

  .daily-ot-result-action {
    justify-content: flex-start;
  }
}

/* Keep the scroll container unpadded so sticky children pin to its real top. */
.daily-ot-body {
  padding: 0;
}

.daily-ot-top-grid {
  margin: 0 36px;
}

.daily-ot-journey {
  margin: 0 36px 16px;
}

@media (max-width: 900px) {
  .daily-ot-body {
    padding: 0;
  }

  .daily-ot-step-summary {
    display: block;
    padding: 18px 18px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f9fafb;
    margin: 0 14px 18px;
  }

  .daily-ot-step-summary > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
  }

  .daily-ot-step-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ot-primary);
    font-weight: 700;
    font-size: 14px;
  }

  .daily-ot-step-summary-title {
    display: block;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--ot-text);
  }

  .daily-ot-step-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
  }

  .daily-ot-step-progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
  }

  .daily-ot-step-progress-fill {
    height: 100%;
    background: var(--ot-primary);
    border-radius: 999px 0 0 999px;
  }

  .daily-ot-step-progress-text {
    min-width: 52px;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    color: var(--ot-text);
  }

  .daily-ot-step-summary-toggle {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: var(--ot-text);
    font-weight: 700;
    cursor: pointer;
  }

  .daily-ot-steps-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 240ms ease;
  }

  .daily-ot-steps-wrapper.is-expanded {
    max-height: 1200px;
  }

  .daily-ot-steps-wrapper:not(.is-expanded) .daily-ot-steps {
    display: none;
  }

  .daily-ot-top-grid {
    margin: 0 14px;
  }

  .daily-ot-journey {
    margin: 0 14px 14px;
  }
}

.daily-ot-result-row.is-selected .daily-ot-result-action .daily-ot-btn {
  color: var(--ot-danger);
  border-color: rgba(192, 57, 43, 0.38);
  background: #fff;
}

.daily-ot-result-row.is-selected .daily-ot-result-action .daily-ot-btn:hover {
  background: #fef2f2;
  border-color: rgba(192, 57, 43, 0.56);
}

.daily-ot-result-row.is-selected .daily-ot-result-check {
  color: #fff;
  background: var(--ot-primary);
  border-color: var(--ot-primary);
}

/* Assignment step overrides must stay after the legacy first-step mockup rules. */
.daily-ot-assignment-step {
  margin: 0 36px 16px;
}

.daily-ot-assignment-step .daily-ot-mechanics {
  display: grid;
}

.daily-ot-assignment-step .daily-ot-summary-section {
  display: block;
}

@media (max-width: 1100px) {
  .daily-ot-assignment-top {
    grid-template-columns: 1fr;
  }

  .daily-ot-assignment-selected {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .daily-ot-assignment-step {
    margin: 0 14px 14px;
  }

  .daily-ot-assignment-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .daily-ot-assignment-selected-box {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-ot-assignment-chip {
    width: 100%;
    max-width: none;
  }
}

/* Final mobile/tablet override for assignment detail rows.
   These rows use one colspan cell, so hiding the first cell hides the whole form. */
@media (max-width: 1100px) {
  .daily-ot-table .daily-ot-delay-row,
  .daily-ot-table .daily-ot-observation-row {
    display: block;
    width: 100%;
  }

  .daily-ot-table .daily-ot-delay-row > td,
  .daily-ot-table .daily-ot-delay-row > td:first-child,
  .daily-ot-table .daily-ot-observation-row > td,
  .daily-ot-table .daily-ot-observation-row > td:first-child {
    display: block;
    width: 100%;
  }

  .daily-ot-table .daily-ot-delay-row > td,
  .daily-ot-table .daily-ot-observation-row > td {
    padding: 0;
    border-bottom: 0;
  }
}

/* Page mode: the day planner now behaves like a regular Horas page, not a modal. */
body.daily-ot-page-open {
  overflow: auto;
}

body.daily-ot-page-open .topbar,
body.daily-ot-page-open .dash-tabs {
  display: none;
}

body.daily-ot-page-open #dash-tab-content,
body.daily-ot-page-open .hp-root,
.daily-ot-page-host {
  min-height: 100vh;
}

body.daily-ot-page-open .hp-root {
  gap: 0;
  padding: 0;
}

.daily-ot-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--ot-bg);
}

.daily-ot-opening-loader {
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.daily-ot-page > .daily-ot-card {
  width: 100%;
  min-height: 100vh;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--ot-surface);
}

.daily-ot-page > .daily-ot-card .daily-ot-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.daily-ot-page > .daily-ot-card .daily-ot-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: auto;
  box-shadow: 0 -1px 0 var(--ot-border), 0 -12px 28px rgba(15, 23, 42, 0.06);
}

.daily-ot-page > .daily-ot-card .daily-ot-results-toggle-row {
  bottom: 66px;
  z-index: 21;
  padding-bottom: 10px;
}

.daily-ot-page .daily-ot-submit-loader {
  position: fixed;
  z-index: 7000;
}

@media (max-width: 1100px) {
  .daily-ot-page > .daily-ot-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .daily-ot-page > .daily-ot-card .daily-ot-footer {
    position: static !important;
    box-shadow: none;
  }

  .daily-ot-page > .daily-ot-card .daily-ot-results-toggle-row {
    bottom: 0;
    z-index: 7;
  }
}

@media (min-width: 1101px) {
  .daily-ot-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 14px;
  }

  .daily-ot-header-top {
    display: contents;
  }

  .daily-ot-title-wrap {
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    order: 1;
  }

  .daily-ot-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 15px;
  }

  .daily-ot-header h2 {
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    white-space: nowrap;
  }

  .daily-ot-title-line {
    gap: 6px;
  }

  .daily-ot-title-date {
    font-size: 12px;
  }

  .daily-ot-icon-btn {
    order: 3;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 14px;
  }

  .daily-ot-steps-mobile {
    display: contents;
  }

  .daily-ot-steps-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    order: 2;
  }

  .daily-ot-steps {
    width: 100%;
    grid-template-columns: max-content minmax(18px, 1fr) max-content minmax(18px, 1fr) max-content minmax(18px, 1fr) max-content;
    gap: 10px;
  }

  .daily-ot-step {
    gap: 8px;
  }

  .daily-ot-step-number {
    width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: 800;
  }

  .daily-ot-step-number svg {
    width: 14px;
    height: 14px;
  }

  .daily-ot-step.is-active .daily-ot-step-number {
    box-shadow: none;
    transform: none;
  }

  .daily-ot-step.is-complete .daily-ot-step-number {
    box-shadow: none;
  }

  .daily-ot-step-text {
    display: block;
  }

  .daily-ot-step-number .ti {
    font-size: 14px;
  }

  .daily-ot-step-text strong {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .daily-ot-step-line {
    height: 1px;
    min-width: 18px;
    background:
      linear-gradient(
        90deg,
        var(--ot-primary) var(--daily-ot-step-line-progress),
        #d9dee4 var(--daily-ot-step-line-progress)
      );
  }

  .daily-ot-step-line-date {
    align-self: end;
    height: 3px;
    margin-bottom: 0;
    background: var(--ot-primary);
  }
}
