/* =============================================================
   PR356 — SOV Schedule Bridge
   TradeRail Field Management SaaS
   ============================================================= */

/* ── Auto-fill Banner ───────────────────────────────────────── */
.pr356-autofill-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #f0f9ff;
  border-left: 3px solid #0369a1;
  padding: 10px;
  font-size: 12px;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
}

.pr356-banner-text {
  flex: 1;
  color: #0c4a6e;
}

.pr356-banner-btn {
  flex-shrink: 0;
  background: #0369a1;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}

.pr356-banner-btn:hover {
  background: #0284c7;
}

/* ── Autofill Preview Modal Overlay ────────────────────────── */
.pr356-autofill-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Autofill Modal Box ─────────────────────────────────────── */
.pr356-autofill-modal {
  background: #ffffff;
  max-width: 560px;
  width: 100%;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.22);
  max-height: 90vh;
  overflow-y: auto;
}

/* ── SOV Table ──────────────────────────────────────────────── */
.pr356-sov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pr356-sov-table th {
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px;
  text-align: left;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
}

.pr356-sov-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}

.pr356-sov-table tr:last-child td {
  border-bottom: none;
}

.pr356-sov-table tr:hover td {
  background: #f8fafc;
}

/* ── Prefill Dot ────────────────────────────────────────────── */
.pr356-prefill-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* ── Activity Panel ─────────────────────────────────────────── */
.pr356-activity-panel {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}

/* ── Activity Toggle Button ─────────────────────────────────── */
.pr356-activity-toggle {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s;
}

.pr356-activity-toggle:hover {
  background: #f1f5f9;
}

/* ── Activity Panel Body ────────────────────────────────────── */
.pr356-activity-body {
  padding: 12px;
  background: #ffffff;
}

/* Collapsed state — toggled via JS (display:none/block) */
/* Expanded: display:block with padding above */

/* ── Confirm Button ─────────────────────────────────────────── */
.pr356-confirm-btn {
  background: #FF6B00;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.pr356-confirm-btn:hover {
  background: #e05d00;
}

/* Armed (two-tap confirm) state */
.pr356-confirm-btn[data-pr356-armed="1"] {
  background: #c2410c;
}

/* ── Cancel Button ──────────────────────────────────────────── */
.pr356-cancel-btn {
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.pr356-cancel-btn:hover {
  background: #e2e8f0;
}

/* ── Override Input (inline in preview modal) ───────────────── */
.pr356-override-input {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 12px;
  width: 60px;
  color: #1e293b;
}

.pr356-override-input:focus {
  outline: none;
  border-color: #0369a1;
  background: #f0f9ff;
}

/* ── Injected block wrapper ─────────────────────────────────── */
#pr356-injected-block {
  margin-bottom: 8px;
}
