/* ============================================================
 * Operations — Coding & Billing views + shared claim record modal.
 * ============================================================ */

.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e6ee);
  border-radius: 10px;
  margin-bottom: 12px;
}
.ops-filter { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.ops-filter label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--muted, #6b7280); font-weight: 700;
}
.ops-filter select, .ops-filter input {
  padding: 7px 9px; border: 1px solid var(--border, #d5d9e0);
  border-radius: 6px; font: inherit; background: #fff;
}
.ops-toolbar .btn { height: 36px; }

.ops-hint { font-size: 12px; color: var(--muted, #6b7280); margin: 2px 2px 10px; }

/* --- Claim list ------------------------------------------------------- */
.ops-claim-list { display: flex; flex-direction: column; gap: 8px; }
.ops-empty {
  padding: 28px 16px; text-align: center; color: var(--muted, #6b7280);
  border: 1px dashed var(--border, #d5d9e0); border-radius: 10px;
}
.ops-claim-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e6ee); border-radius: 10px;
}
.ops-claim-card:hover { border-color: #c7d2fe; }
.ops-claim-main { flex: 1; min-width: 0; }
.ops-claim-name { font-weight: 700; color: var(--text, #1f2937); }
.ops-claim-meta { font-size: 12px; color: var(--muted, #6b7280); margin-top: 2px; }

.ops-pill {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.ops-pill-good    { background: #dcfce7; color: #166534; }
.ops-pill-warn    { background: #fef3c7; color: #92400e; }
.ops-pill-neutral { background: #eef2f7; color: #475569; }

.ops-assignee {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
  font-size: 11px;
}
.ops-list-mode {
  font-size: 12px; font-weight: 700; color: #3730a3;
  background: #eef2ff; border: 1px solid #c7d2fe;
  border-radius: 8px; padding: 6px 10px; margin-bottom: 8px;
}
.ops-readonly-badge {
  font-size: 12px; font-weight: 600; color: #92400e;
  background: #fef3c7; border: 1px solid #fcd34d;
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
}

/* --- Shared claim record modal --------------------------------------- */
.ops-record-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: stretch; justify-content: center;
  padding: 24px;
}
.ops-record-backdrop.hidden { display: none; }
.ops-record-frame {
  background: var(--bg, #f7f8fb);
  border-radius: 12px; width: 100%; max-width: 1100px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.ops-record-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; background: #fff;
  border-bottom: 1px solid var(--border, #e2e6ee);
}
.ops-record-header h2 { margin: 0; font-size: 18px; }
.ops-record-header .meta { font-size: 12px; color: var(--muted, #6b7280); }
.ops-record-body { padding: 16px 18px; overflow-y: auto; }

/* --- Coding / Billing form ------------------------------------------- */
.ops-section-title {
  margin: 4px 0 10px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.5px; color: #334155;
  border-bottom: 2px solid #e2e8f0; padding-bottom: 6px;
}
.ops-form {
  background: #fff; border: 1px solid var(--border, #e2e6ee);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
}
.ops-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
}
@media (max-width: 720px) { .ops-grid { grid-template-columns: 1fr; } }
.ops-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px;
  font-weight: 600; color: #475569; }
.ops-field.ops-col-2 { grid-column: 1 / -1; }
.ops-field input, .ops-field select, .ops-field textarea {
  padding: 7px 9px; border: 1px solid var(--border, #d5d9e0);
  border-radius: 6px; font: inherit; font-weight: 500; background: #fff;
}
.ops-field textarea { resize: vertical; }

.ops-form-actions {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.ops-move-hint { font-size: 11.5px; color: var(--muted, #6b7280); }

.ops-coding-readout {
  display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px;
  color: #334155; margin-bottom: 12px;
}
.ops-coding-readout b { color: #475569; }

/* --- Reused Cleansing record (read-only) ----------------------------- */
.ops-record-detail { margin-top: 8px; }
.ops-readonly-record {
  background: #fff; border: 1px solid var(--border, #e2e6ee);
  border-radius: 10px; padding: 8px 12px;
}
.ops-readonly-record input:disabled,
.ops-readonly-record select:disabled,
.ops-readonly-record textarea:disabled,
.ops-readonly-record button:disabled { opacity: 1; cursor: default; }
.ops-record-missing {
  padding: 16px; text-align: center; color: var(--muted, #6b7280);
  border: 1px dashed var(--border, #d5d9e0); border-radius: 10px;
}
