/* 프리랜서 정산 — 월별 정산 미리보기 (settlement-preview-ui.js) */
.sp-card { padding: 18px 20px; margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 10px 26px rgba(25,50,35,.06); overflow-x: auto; }
.sp-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.sp-head h3 { margin: 0 0 4px; font-size: 17px; }
.sp-head p { margin: 0; font-size: 13px; max-width: 760px; line-height: 1.5; }
.sp-range { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.sp-range label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.sp-range input { border: 1px solid #cdd8ce; border-radius: 8px; padding: 8px; background: #fff; }
.sp-tabs { display: flex; gap: 8px; margin: 14px 0 10px; flex-wrap: wrap; }
.sp-sum { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.sp-sum strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.sp-table, .sp-lines { width: 100%; }
.sp-table td { vertical-align: middle; }
.sp-detail > td { background: #fafcfa; padding: 6px 12px 14px; }
.sp-lines th { font-size: 11.5px; }
.sp-lines td { font-size: 13px; padding: 8px 10px; }
.sp-formula { color: #4f5d53; font-size: 12px !important; max-width: 420px; }
.sp-warn { margin-top: 12px; }
.sp-warn ul { margin: 6px 0 0 18px; padding: 0; }
.sp-badge { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.sp-badge.ok, .sp-check.ok { color: #24553a; }
.sp-badge.ok { background: var(--pale); }
.sp-badge.bad, .sp-check.bad { color: #a43d31; }
.sp-badge.bad { background: #fff0ee; }
.sp-check { font-size: 12px !important; max-width: 340px; }
.sp-rule { font-size: 12.5px; color: var(--muted); margin: 4px 2px 8px; line-height: 1.5; }
.sp-subtotal td { background: #f3f7f4; font-weight: 700; font-size: 12.5px !important; color: #3d5245; }
.sp-total td { background: #e8f1ea; font-weight: 800; border-top: 2px solid #cfdcd2; }
.sp-grand td { background: #dfece2; }
.sp-table tfoot td { padding: 11px 15px; }
/* 긴 계산식·대조 문구는 줄바꿈 — 옆 칸(배분액) 위로 겹치지 않게 */
.sp-lines td.sp-formula, .sp-lines td.sp-check { white-space: normal !important; overflow-wrap: anywhere; min-width: 220px; }
.sp-lines td.money { white-space: nowrap; }
.sp-items-row > td { background: #fbfcfb; padding: 4px 14px 14px 28px !important; }
.sp-items h4 { margin: 10px 0 6px; font-size: 13px; }
.sp-item-table { width: 100%; }
.sp-item-table th { font-size: 11px; }
.sp-item-table td { font-size: 12.5px; padding: 6px 10px; }
.sp-item-table tr.sp-off td { color: #98a39b; }
.sp-zero { color: #8a6100; font-weight: 700; }
