.ec-dialog {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

/* HEADER */
.ec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #faf8ff;
  border-bottom: 1px solid #eee;

  h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }

  .ec-subtitle {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #777;
  }
}

/* BODY */
.ec-body {
  padding: 16px 20px;
  overflow-y: auto;
}

/* FILTER NAME */
.ec-name-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;

  span {
    color: #444;
  }

  input {
    height: 36px;
    border-radius: 6px;
    border: 1px solid #d8d8d8;
    padding: 0 10px;
    font-size: 13px;

    &:focus {
      outline: none;
      border-color: #6e3ab6;
      box-shadow: 0 0 0 2px rgba(110, 58, 182, .12);
    }
  }
}

/* TABLE */
.ec-table-wrapper {
  margin-top: 18px;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.ec-table {
  width: 100%;
  border-collapse: collapse;

  th {
    position: sticky;
    top: 0;
    background: #f7f7f9;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    color: #666;
  }

  th,
  td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 13px;
  }

  tbody tr {
    transition: .15s;

    &:hover {
      background: #faf7ff;
    }
  }

  .check-col {
    width: 40px;
    text-align: center;
  }

  .attribute-name {
    font-weight: 500;
    color: #333;
  }

  select,
  input[type="text"] {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border-radius: 5px;
    border: 1px solid #d5d5d5;
    font-size: 13px;

    &:focus {
      outline: none;
      border-color: #6e3ab6;
    }

    &:disabled {
      background: #f5f5f5;
      cursor: not-allowed;
    }
  }
}

/* EMPTY / LOADING */
.ec-loading,
.ec-empty {
  padding: 40px 0;
  text-align: center;
  color: #777;
  font-size: 13px;
}

/* FOOTER */
.ec-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

/* BUTTONS */
.ec-btn {
  height: 36px;
  min-width: 100px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
}

.ec-btn-primary {
  background: #6e3ab6;
  color: white;
  border: 1px solid #6e3ab6;

  &:hover:not(:disabled) {
    background: #5b2e99;
  }
}

.ec-btn-secondary {
  background: white;
  color: #555;
  border: 1px solid #ccc;

  &:hover:not(:disabled) {
    background: #f3f3f3;
  }
}

/* CLOSE BUTTON */
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 22px;
  color: #666;
  cursor: pointer;

  &:hover {
    background: #eee;
    color: #333;
  }
}