.cost-allocations-dialog {
  border: 1px solid #158be2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  background: #ffffff;
  width: min(520px, calc(100vw - 40px));
  max-height: 85vh;
  padding: 12px 16px;
  border-radius: 2px;
  font-family: inherit;
  overflow: auto;
}
.cost-alloc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f4c81;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.cost-alloc-header h2 {
  font-size: 14px;
  font-weight: bold;
  color: #0f4c81;
  margin: 0;
}
.cost-alloc-amount-badge {
  font-size: 13px;
  color: #222;
}
.cost-category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.cost-category-row select {
  font: inherit;
  font-size: 12px;
  padding: 2px 4px;
}
.cost-alloc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 12px;
}
.cost-alloc-table th {
  text-align: left;
  border-bottom: 1px solid #ccc;
  padding: 4px;
  background: #f4f6f8;
}
.cost-alloc-table th.money-col {
  text-align: right;
}
.cost-alloc-table td {
  padding: 4px 2px;
}
.cost-alloc-table input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 12px;
  padding: 2px 4px;
  background: #fff0bf;
  border: 1px solid #ccc;
}
.cost-alloc-table input:focus {
  background: #ffcc34;
  border-color: #158be2;
  outline: none;
}
.cost-alloc-table input.cost-amount-input {
  text-align: right;
}
.cost-remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 13px;
  padding: 0 4px;
}
.cost-remove-btn:hover {
  color: #c00;
}
.cost-alloc-add-row {
  margin: 6px 0;
}
.cost-alloc-add-row button {
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}
.cost-alloc-summary {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  border-top: 1px solid #ccc;
  padding-top: 6px;
  margin-top: 8px;
  font-size: 12px;
}
.cost-alloc-summary .unbalanced {
  color: #c00;
}
.cost-alloc-summary .balanced {
  color: #008000;
}
.cost-alloc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.cost-alloc-actions button {
  font: inherit;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
}
.add-line-button {
  margin-top: 6px;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}
