.commission-policy-view { width: 100%; max-width: 100%; padding: 24px; background: #f5f7fb; min-width: 0; overflow-x: hidden; }
.policy-hero, .policy-validation, .policy-rule-card, .policy-notes { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.policy-hero { padding: 20px; }
.policy-hero-top, .policy-section-head, .policy-rule-head, .policy-note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.policy-eyebrow { color: #2563eb; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.policy-hero h2, .policy-section-head h3, .policy-rule-head h3 { margin: 4px 0 0; color: #0f172a; }
.policy-source { margin: 8px 0 0; color: #64748b; font-size: 13px; }
.policy-meta-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; }
.policy-meta-item { padding: 12px 14px; border-radius: 10px; background: #f8fafc; }
.policy-meta-item span { display: block; color: #64748b; font-size: 12px; margin-bottom: 5px; }
.policy-meta-item strong { color: #0f172a; font-size: 14px; }
.policy-input, .policy-textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font: inherit; padding: 8px 10px; }
.policy-input:focus, .policy-textarea:focus { outline: 2px solid rgba(37, 99, 235, .2); border-color: #2563eb; }
.policy-validation { margin-top: 16px; padding: 18px 20px; }
.policy-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.policy-badge { border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.policy-badge.error { color: #b91c1c; background: #fee2e2; }
.policy-badge.warning { color: #92400e; background: #fef3c7; }
.policy-badge.info { color: #1d4ed8; background: #dbeafe; }
.policy-issue-list { margin: 14px 0 0; padding-left: 20px; color: #475569; }
.policy-issue-list li + li { margin-top: 7px; }
.policy-rules { display: grid; gap: 16px; margin-top: 16px; }
.policy-rule-card { min-width: 0; max-width: 100%; padding: 18px; overflow: hidden; }
.policy-rule-head p { margin: 7px 0 0; color: #64748b; font-size: 13px; }
.policy-rule-fields { display: grid; grid-template-columns: 1.3fr .5fr 2fr; gap: 10px; width: 100%; }
.policy-rule-fields label, .policy-meta-edit label { color: #64748b; font-size: 12px; }
.policy-rule-fields .policy-input, .policy-meta-edit .policy-input { margin-top: 5px; }
.policy-table-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; margin-top: 16px; }
.policy-matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.policy-matrix th, .policy-matrix td { padding: 10px 12px; text-align: center; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.policy-matrix th:first-child, .policy-matrix td:first-child { border-left: 1px solid #e2e8f0; text-align: left; min-width: 150px; }
.policy-matrix thead tr:first-child th { border-top: 1px solid #e2e8f0; }
.policy-matrix thead th { background: #eff6ff; color: #1e3a8a; font-weight: 700; }
.policy-matrix .policy-input { min-width: 100px; text-align: center; padding: 6px 8px; }
.policy-scenario-row th { background: #f8fafc; color: #475569; font-weight: 600; }
.policy-inline-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.policy-mini-button { border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 10px; background: #fff; color: #334155; cursor: pointer; }
.policy-mini-button.danger { color: #b91c1c; }
.policy-notes { margin-top: 16px; padding: 20px; }
.policy-note-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.policy-note { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; background: #f8fafc; }
.policy-note.pending { border-color: #fcd34d; background: #fffbeb; }
.policy-note h4 { margin: 0; color: #0f172a; }
.policy-note p { margin: 8px 0 0; color: #475569; line-height: 1.65; white-space: pre-wrap; }
.policy-note .policy-textarea { margin-top: 8px; min-height: 92px; resize: vertical; }
.policy-status { color: #92400e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.commission-policy-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 980px) { .policy-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .policy-note-list, .policy-rule-fields { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .commission-policy-view { padding: 12px; }
  .policy-hero, .policy-validation, .policy-rule-card, .policy-notes { min-width: 0; max-width: 100%; }
  .policy-hero-top, .policy-section-head { flex-wrap: wrap; }
  .commission-policy-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
}
