#view-costs { min-width: 0; }
.cost-heading,.cost-toolbar,.cost-actions,.cost-paging { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.cost-heading { justify-content:space-between; margin-bottom:22px; }
.cost-heading h1 { font-size:28px; letter-spacing:-.6px; }
.cost-muted { color:var(--text-secondary); font-size:14px; }
.cost-toolbar { margin:20px 0; }
.cost-toolbar label { display:grid; gap:5px; font-size:13px; }
.cost-search { flex:1; min-width:180px; }
.cost-panel { border:1px solid var(--border-color); border-radius:14px; background:var(--bg-card); padding:20px; margin-bottom:18px; }
.cost-intake summary { cursor:pointer; font-weight:600; }
.cost-drop { border:1px dashed var(--border-light); border-radius:10px; padding:26px 16px; text-align:center; margin:18px 0; }
.cost-drop.dragging { background:var(--bg-hover); border-color:var(--accent-primary); }
.cost-drop p { margin-bottom:12px; }
.cost-pending { display:grid; gap:8px; margin-top:16px; }
.cost-pending button { text-align:left; white-space:normal; display:grid; gap:3px; justify-content:start; }
.cost-pending small { color:var(--text-secondary); font-weight:400; }
.cost-table-wrap { overflow:auto; }
.cost-table { width:100%; border-collapse:collapse; }
.cost-table th { color:var(--text-secondary); font-weight:500; font-size:12px; text-align:left; }
.cost-table td,.cost-table th { padding:14px 12px; border-bottom:1px solid var(--border-color); vertical-align:top; }
.cost-table button { color:var(--text-primary); background:none; border:0; text-decoration:underline; text-underline-offset:4px; cursor:pointer; font:inherit; text-align:left; }
.cost-table .cost-amount { white-space:nowrap; font-variant-numeric:tabular-nums; text-align:right; }
.cost-badge { display:inline-block; padding:2px 8px; border-radius:5px; background:var(--bg-tertiary); color:var(--text-secondary); font-size:12px; }
.cost-paging { justify-content:flex-end; padding-top:16px; }
.cost-message { margin:12px 0; white-space:pre-wrap; }
.cost-message:empty { display:none; }
.cost-error { color:var(--error); }
.cost-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; align-items:start; }
.cost-preview { position:sticky; top:20px; min-width:0; }
.cost-preview iframe { width:100%; height:70vh; border:1px solid var(--border-color); border-radius:10px; background:white; margin-top:12px; }
.cost-preview img { max-width:100%; max-height:70vh; object-fit:contain; margin-top:12px; }
.cost-form { display:grid; gap:16px; min-width:0; }
.cost-form label { display:grid; gap:5px; font-size:13px; min-width:0; }
.cost-form input,.cost-form textarea,.cost-form select,.cost-toolbar input { width:100%; min-width:0; background:var(--bg-secondary); color:var(--text-primary); border:1px solid var(--border-color); border-radius:7px; padding:9px 10px; font:inherit; }
.cost-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.cost-line { padding:14px; border:1px solid var(--border-color); border-radius:10px; display:grid; gap:10px; margin-bottom:12px; }
.cost-line-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.cost-definition { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin:20px 0; }
.cost-definition dt { color:var(--text-secondary); font-size:13px; }
.cost-definition dd { overflow-wrap:anywhere; }
.cost-empty { text-align:center; padding:48px 20px; color:var(--text-secondary); }
.cost-detail-number { overflow-wrap:anywhere; }
.cost-file-link { overflow-wrap:anywhere; }
@media(max-width:950px) { .cost-split { grid-template-columns:1fr; } .cost-preview { position:static; } .cost-preview iframe { height:50vh; } }
@media(max-width:600px) { .cost-heading h1 { font-size:24px; } .cost-panel { padding:14px; } .cost-grid { grid-template-columns:1fr; } .cost-table th:nth-child(3),.cost-table td:nth-child(3),.cost-table th:nth-child(4),.cost-table td:nth-child(4) { display:none; } .cost-table td,.cost-table th { padding:12px 6px; } .cost-table { font-size:13px; } .cost-heading .cost-actions { width:100%; } .cost-definition { grid-template-columns:1fr; } }
