/* ============================================================
   TradeRail — PR355 Cost Code Tagging on Schedule Modal
   pr355_cost_code_schedule.css
   ============================================================ */

/* ── Cost code chip — schedule board card ────────────────── */

.sched-costcode-chip {
  display: inline-block;
  background: #f0f0f0;
  color: #444;
  font-family: monospace;
  font-size: 0.72rem;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 3px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Cost code section wrapper — add/edit modal ──────────── */

.pr355-costcode-section {
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Form label — matches existing schedule modal label style */

.pr355-costcode-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* ── Cost code select dropdown ───────────────────────────── */

.pr355-costcode-select {
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  outline: none;
  appearance: auto;
}

.pr355-costcode-select:focus {
  border-color: #FF6B00;
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.15);
}

.pr355-costcode-select:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ── Search / filter input inside the dropdown ───────────── */

.pr355-costcode-search {
  font-size: 13px;
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}

.pr355-costcode-search:focus {
  border-color: #FF6B00;
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.15);
}

/* ── Empty state message ─────────────────────────────────── */

.pr355-costcode-empty-msg {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 6px;
  line-height: 1.5;
}

.pr355-costcode-empty-msg a {
  color: #FF6B00;
  text-decoration: underline;
}

/* ── "Use trade defaults" button ─────────────────────────── */

.pr355-use-defaults-btn {
  font-size: 12px;
  font-weight: 600;
  color: #FF6B00;
  background: transparent;
  border: 1px solid #FF6B00;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  margin-bottom: 6px;
  display: inline-block;
}

.pr355-use-defaults-btn:hover {
  background: rgba(255, 107, 0, 0.06);
}

/* ── Progress slider section ─────────────────────────────── */

.pr355-progress-section {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Progress range slider ───────────────────────────────── */

.pr355-progress-slider {
  width: 100%;
  box-sizing: border-box;
  accent-color: #FF6B00;
  cursor: pointer;
  display: block;
  margin-top: 4px;
}

/* ── Inline numeric value display ────────────────────────── */

.pr355-progress-value {
  font-size: 13px;
  font-weight: 600;
  color: #FF6B00;
  margin-left: 2px;
}

/* ── Foreman log progress card ───────────────────────────── */

.pr355-log-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.pr355-log-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.pr355-log-card-task {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.pr355-log-card-question {
  font-size: 13px;
  color: #374151;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ── Log card action buttons ─────────────────────────────── */

.pr355-log-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ── Two-tap confirm button — armed (primary) ────────────── */

.pr355-confirm-btn {
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.pr355-confirm-btn:hover {
  background: #e05e00;
}

.pr355-confirm-btn:active {
  background: #c25200;
}

/* ── Two-tap confirm button — pending second tap ─────────── */

.pr355-confirm-pending {
  background: #fff;
  color: #FF6B00;
  border: 1px solid #FF6B00;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.pr355-confirm-pending:hover {
  background: rgba(255, 107, 0, 0.06);
}

/* ── Skip button ─────────────────────────────────────────── */

.pr355-skip-btn {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.pr355-skip-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

/* ── Post-save feedback line ─────────────────────────────── */

.pr355-log-feedback {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 8px;
}

/* ── Sidebar guard: desktop-only (all PR355 sidebar UI) ──── */

@media (max-width: 767px) {
  .pr355-sidebar-only {
    display: none !important;
  }
}
