.fpc-calc { max-width: 900px; margin: 0 auto; font-size: 15px; line-height: 1.4; }
.fpc-block { border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; background: #fafafa; }
.fpc-h3 { margin: 0 0 12px; font-size: 17px; }
.fpc-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.fpc-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; }
.fpc-field-small { flex: 1 1 140px; }
.fpc-field span { font-size: 12px; color: #555; }
.fpc-field select, .fpc-field input { padding: 7px 8px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; }
.fpc-field input[readonly] { background: #f0f0f0; }

.fpc-element { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.fpc-element-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fpc-el-label { flex: 1; padding: 6px 8px; border: 1px solid #ccc; border-radius: 5px; font-weight: 600; }
.fpc-el-remove { border: none; background: #f2dede; color: #a94442; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; }
.fpc-el-remove:hover { background: #e6b3b3; }

.fpc-btn { border: none; border-radius: 6px; padding: 10px 18px; font-size: 14px; cursor: pointer; }
.fpc-btn-primary { background: #d9534f; color: #fff; }
.fpc-btn-primary:hover { background: #c9302c; }
.fpc-btn-secondary { background: #eee; color: #333; }
.fpc-btn-secondary:hover { background: #ddd; }
.fpc-actions { display: flex; gap: 10px; margin-bottom: 18px; }

.fpc-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.fpc-table th, .fpc-table td { border: 1px solid #e0e0e0; padding: 8px 10px; text-align: left; font-size: 14px; }
.fpc-table thead th { background: #f0f0f0; }
.fpc-table tfoot td { background: #f7f7f7; }
.fpc-row-error td { color: #a94442; background: #fdf2f2; }
.fpc-approx { color: #b8860b; cursor: help; }

.fpc-notice { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-top: 10px; }
.fpc-notice-warn { background: #fcf8e3; border: 1px solid #f0e2a4; color: #8a6d3b; }
.fpc-notice-info { background: #eef6fb; border: 1px solid #cfe6f5; color: #31708f; }
.fpc-notice-error { background: #fdf2f2; border: 1px solid #e6b3b3; color: #a94442; }

@media print {
  .fpc-actions, #fpc-add-element { display: none !important; }
  .fpc-block { border: none; background: none; }
}
