/* === Общий контейнер === */
.conclusion-wrapper {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #333;
}

.conclusion-wrapper h3 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

/* === Панель фильтров === */
.conclusion-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.conclusion-toolbar input[type="text"],
.conclusion-toolbar select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  min-width: 220px;
  transition: border-color 0.2s;
}

.conclusion-toolbar input:focus,
.conclusion-toolbar select:focus {
  border-color: #0073aa;
  outline: none;
}

/* === Таблица === */
.conclusion-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.conclusion-table thead {
  background: #f6f6f6;
  border-bottom: 2px solid #ddd;
}

.conclusion-table th,
.conclusion-table td {
  border: 1px solid #e3e3e3;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

.conclusion-table th {
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.conclusion-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.conclusion-table tbody tr:hover {
  background: #eef6ff;
  transition: background 0.2s;
}

/* === Ссылки и кнопки === */
.conclusion-table a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.conclusion-table a:hover {
  text-decoration: underline;
  color: #005177;
}

.conclusion-edit,
.conclusion-delete {
  border: none;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 5px;
  transition: all 0.2s ease;
}

.conclusion-edit {
  background: #e0f3ff;
  color: #005177;
}

.conclusion-edit:hover {
  background: #c8e8ff;
}

.conclusion-delete {
  background: #ffe7e7;
  color: #b10000;
}

.conclusion-delete:hover {
  background: #ffc9c9;
}

/* === Модальное окно === */
#conclusion_modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#conclusion_modal form {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

#conclusion_modal p {
  margin-bottom: 12px;
}

#conclusion_modal input,
#conclusion_modal select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

#conclusion_modal button {
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.2s;
}

#conclusion_modal button[type="submit"] {
  background: #0073aa;
  color: #fff;
}

#conclusion_modal button[type="submit"]:hover {
  background: #005f8d;
}

#conclusion_modal_close {
  background: #e5e5e5;
  color: #333;
}

#conclusion_modal_close:hover {
  background: #d0d0d0;
}

/* === Форма добавления === */
.conclusion-add {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-top: 20px;
}

.conclusion-add h4 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.conclusion-add table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.conclusion-add th,
.conclusion-add td {
  border: 1px solid #ddd;
  padding: 6px 8px;
}

.conclusion-add th {
  background: #f6f6f6;
  font-weight: 600;
}

.conclusion-add input,
.conclusion-add select {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.conclusion-add button {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s;
}

#conclusion_add_row {
  background: #e7f6e7;
  color: #1c6b1c;
}

#conclusion_add_row:hover {
  background: #d5f0d5;
}

.conclusion_row_remove {
  background: #ffeaea;
  color: #b10000;
}

.conclusion_row_remove:hover {
  background: #ffd6d6;
}
select.decision option {
  color: #000 !important;
  background-color: #fff !important;
}
select.decision {
  color: #000 !important;
}